Thread: Macros in menu
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
PCLIVE PCLIVE is offline
external usenet poster
 
Posts: 1,311
Default Macros in menu

Place your module code into the button code.
Copy the general module code, right-click on the userform button and select
'View code'. Paste code here. The remove the general module code.
Backup file first.

HTH,
Paul

"Sam" wrote in message
...
I have a userform with command buttons that initiate procedures in general
modules. How can I prevent these procedures from being run via the
Tools...Macro...Macros menu?