Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

Banish the Macro Button_Protection To THE Ultimate!

Hello All,

I am sending a protected workbook to  folks. I was wondering is that any thing i can do to totally remove or hide the macro button under the developer tab....anything i can do to not let the user see or access it....coz i have several of them that could be seen if i go to Developer tab > Macro
i know that if i make a sub private it will not show up in that macro list...but to implement that change all across 100 of them - doesn't make sense in terms of how much time deadline at hand...
0
Rayne
Asked:
Rayne
  • 3
2 Solutions
 
DrTribosCommented:
Unless you use VBA to hide the button it will be there, and even if you do pressing Alt+F11 will still let the users see the project, unless you have locked it for viewing.  You can password protect it.

I think the fastest way to achieve the goal of the macros not showing up is to use a find and replace and change "()" to:
"(optional a as string)"

Putting in the optional variable declaration does not change the way the code runs but will prevent the macro from being listed.

Assuming there are no "()" in your code except for the first line in each sub this should be pretty easy and fast.  Make sure you use debug > compile to check for errors before sending out.
0
 
DrTribosCommented:
File 4 in this example will give you a good starting place In that file, Microsoft Excel MVP Ron de Bruin shows how to hide and display a built-in tab group.
0
 
RayneAuthor Commented:
Thank you Dr Tribos :)
0
 
DrTribosCommented:
No worries  - glad it helped
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now