Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Macros in menu

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
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?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Macros in menu

Putting Option Private Module at the top of each standard module should do
it.

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


  #4   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Macros in menu

Excellent! Thank you so much! It worked beautifully!

"Jim Rech" wrote:

Putting Option Private Module at the top of each standard module should do
it.

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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macros and Menu Command mary Excel Discussion (Misc queries) 2 September 7th 07 07:00 PM
Command/Menu bar & assigned macros RITCHI Excel Programming 1 January 30th 07 12:01 AM
Macros Menu Keeps Appearing Portocar Excel Discussion (Misc queries) 2 November 13th 06 11:35 PM
Triggering an excel menu using macros Sassy[_3_] Excel Programming 0 July 9th 05 12:18 AM
Can't Move Menu with Macros to Another Folder Arnold Dubin Excel Programming 1 June 4th 04 04:20 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"