how can I hide macro list from user?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I created a workbook with several macros. I password-protected the workbook,
the sheets and even the VBA project from viewing. Still, the entire macro
list pops up when the user pulls up the macro list (Tools|Macro|Macros or
Alt+F8.) I don't want the user to see the list of macros hidden in the
workbook. How can I hide the list from the user?
 
Precede the macro name with the keyword Private; e.g.:

Private Sub MyMacro()
'..........
End Sub
 
Don't the macros that will be called from a commandbar button (to start your
macro) or menu have to be Public? The others can all be Private.
 
If all the modules are only callable from your project in V BA, the precede
the module with

Option Private Module
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top