ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   hide macro in listbox (https://www.excelbanter.com/excel-programming/354081-hide-macro-listbox.html)

BillyRogers

hide macro in listbox
 
Is there a way to hide or prevent some of my sub procedures from showing up
in the macro list box? some of the procedures are called by other macros and
are never started directly by the user, so they only clutter of the listbox
when someone chooses tools, macros,macros.



Ron de Bruin

hide macro in listbox
 
Hi BillyRogers

You can place Private before a sub like this
Private Sub test()

Or add this at the top of the module
Option Private Module

This way you don't see it in the macro list (Alt-F8)



--
Regards Ron de Bruin
http://www.rondebruin.nl


"BillyRogers" wrote in message ...
Is there a way to hide or prevent some of my sub procedures from showing up
in the macro list box? some of the procedures are called by other macros and
are never started directly by the user, so they only clutter of the listbox
when someone chooses tools, macros,macros.





BillyRogers

hide macro in listbox
 
Your the BEST Ron!!!!!!!!!!!

"Ron de Bruin" wrote:

Hi BillyRogers

You can place Private before a sub like this
Private Sub test()

Or add this at the top of the module
Option Private Module

This way you don't see it in the macro list (Alt-F8)



--
Regards Ron de Bruin
http://www.rondebruin.nl


"BillyRogers" wrote in message ...
Is there a way to hide or prevent some of my sub procedures from showing up
in the macro list box? some of the procedures are called by other macros and
are never started directly by the user, so they only clutter of the listbox
when someone chooses tools, macros,macros.







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

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