ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how can I hide macro list from user? (https://www.excelbanter.com/excel-programming/328346-how-can-i-hide-macro-list-user.html)

Bill_S

how can I hide macro list from user?
 
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?

Vasant Nanavati

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?




Jim at Eagle

how can I hide macro list from user?
 
If I label the macro private then how does VBA call the private sub
--
Jim at Eagle


"Vasant Nanavati" wrote:

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?





Bill Renaud[_2_]

how can I hide macro list from user?
 
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.
--
Regards,
Bill


"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
Precede the macro name with the keyword Private; e.g.:

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

--

Vasant




Bob Phillips[_7_]

how can I hide macro list from user?
 
If all the modules are only callable from your project in V BA, the precede
the module with

Option Private Module

--
HTH

Bob Phillips

"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?





All times are GMT +1. The time now is 02:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com