Solved

Banish the Macro Button_Protection To THE Ultimate!

Posted on 2014-04-19
4
145 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 14

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 14

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 14

Expert Comment

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

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Convert .PDF 6 42
onOpen 14 41
Add macros on Open 9 32
copying horizontal cells values vertically in Excel 2 10
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now