?
Solved

Banish the Macro Button_Protection To THE Ultimate!

Posted on 2014-04-19
4
Medium Priority
?
154 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 2000 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 2000 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 IT Pros

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

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

719 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