Hello
I have macro to unprotect all sheet, so users can easily open macros from developer tap and run this macro to unprotect the sheets
is there anyway to avoid this?
Hello
I have macro to unprotect all sheet, so users can easily open macros from developer tap and run this macro to unprotect the sheets
is there anyway to avoid this?
If you just want to remove the routine from the dialog make it private
You can still run the code from the dialog, but you need to know the name of the routine![]()
Please Login or Register to view this content.
I assume you vb project is locked so they can not see the code?
Edit: You can disable the button using ribbon xml, if you really want to.
Yes project is locked
But I am calling the sub from every where in the VBA code
sheets,userforms, modules
making it private will make problems?
You could maybe add an Optional parameter that you don't use in the routine.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks