Solved

Banish the Macro Button_Protection To THE Ultimate!

Posted on 2014-04-19
4
152 Views
Last Modified: 2014-04-20
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
Comment
Question by:Rayne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 15

Accepted Solution

by:
DrTribos earned 500 total points
ID: 40010933
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
 
LVL 15

Assisted Solution

by:DrTribos
DrTribos earned 500 total points
ID: 40010936
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
 

Author Comment

by:Rayne
ID: 40011392
Thank you Dr Tribos :)
0
 
LVL 15

Expert Comment

by:DrTribos
ID: 40011400
No worries  - glad it helped
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question