on 04-17-2006 7:45 AM
hi MSTF,
try this
Sub Disable_BEx()
Dim CmdBar As CommandBar
Dim CmdBarMenu As CommandBarControl
' Point to the Worksheet Menu Bar
Set CmdBar = Application.CommandBars("Worksheet Menu Bar")
' Point to the BEx menu on the menu bar
Set CmdBarMenu = CmdBar.Controls("Business Explorer")
'to disable menu "Business Explorer"
CmdBarMenu.Enabled = False
'to hide/'remove' menu "Business Explorer"
CmdBarMenu.Visible = False
End Sub
hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.