View Full Version : Hide the Macro form Dialog Box
RA199
05-23-2023, 10:30 AM
Good Evening
I am new in VBA in excell , I was practicing & there are many macro .My question is if there is any way to hide a macro from appearing as an option in the dialog box .
Thanks
Logit
05-23-2023, 10:33 AM
When naming the SUB put PRIVATE in front of the term SUB ....
Private Sub ThisIsMySubName ()
... your code.....
End Sub
Paul_Hossler
05-23-2023, 02:44 PM
Also, if you know the macro name, you can still manually enter the name and then run it
Also #2, if the Sub requires parameters it won't show in the list
You can also change your Sub to a Function which will make you crazy when you're looking on you're macro list for a procedure that obviously exists (personal experience). Dave
Aflatoon
05-25-2023, 02:16 AM
Or use Option Private Module
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.