View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Vasant Nanavati Vasant Nanavati is offline
external usenet poster
 
Posts: 1,080
Default how can I hide macro list from user?

Precede the macro name with the keyword Private; e.g.:

Private Sub MyMacro()
'..........
End Sub

--

Vasant

"Bill_S" wrote in message
...
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?