hiding the macro menus

cmefly

Well-known Member
Joined
May 13, 2003
Messages
683
hi,

i've created a program with multiple macros.

I want to hide the macro pulldown menu and macro toolbar.

i've got this code to hide the tool bar:

Application.CommandBars("Visual Basic").Enabled = False

but how do i hide the pulldown menu found under TOOLS-->MACROS

any ideas?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
If you declare your subs as Private they won't show up in the menus

Private Sub MyMacro()
 
Upvote 0
wow...i have a ton of macros...


so if i go into each module and put the word "private" before sub for each one....i won't have a problem...??


some macros call other macros....this is okay? do you foresee any issues?
 
Upvote 0
can i use this code to hide the pulldown menu...

Application.CommandBars("Visual Basic").controls ??? i just don't know how to use this properly....i'm googling options and this came up....
 
Upvote 0
I'm not sure but don't forget that you'd need to disable ALT +F8 as well (and there might be other shortcuts).

In the VBE you can use Edit > Replace and replace Sub with Private Sub
 
Upvote 0
okay....i'll do what you said...


i found out that this: Application.CommandBars("Tools").Controls("Macro").Delete works well...

wonder how to get rid of shortcut??? hmmmm...
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top