ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Disable macro selections under tools menu (https://www.excelbanter.com/excel-discussion-misc-queries/261871-disable-macro-selections-under-tools-menu.html)

Jeremy

Disable macro selections under tools menu
 
I have macros to automate on a sheet and want to disable the option to run a
macro under the tool selection on the menu bar. How would I do this?


Thank you



Jim Thomlinson

Disable macro selections under tools menu
 
Change the macro's declaration from public to private. If you want to hide
all of the procedures in a specific module then use
Option Private Module
at the top of the code module.
--
HTH...

Jim Thomlinson


"Jeremy" wrote:

I have macros to automate on a sheet and want to disable the option to run a
macro under the tool selection on the menu bar. How would I do this?


Thank you




All times are GMT +1. The time now is 07:12 AM.

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