Solved

Banish the Macro Button_Protection To THE Ultimate!

Posted on 2014-04-19
4
148 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
  • 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

810 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