Solved

Hiding macros

Posted on 1998-11-13
3
280 Views
Last Modified: 2010-04-30
What is the best way to hide macros created in an Excel 97 modules ? This should include not allowing unauthorised access to the macros. Also is it possible to hide what macro was assigned to a command button ?
0
Comment
Question by:timjc
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
ajmendes earned 30 total points
ID: 1444766
Hi,
you can hide a macro that is assigned to a command button if you protect the sheet where it is.
You can hide macros that you created in Excel, preventing that users can't access the Visual Basic Editor.

I hope this helps.
Bye.
0
 
LVL 1

Expert Comment

by:ajmendes
ID: 1444767
Hi again,
as i'm going on weekend and before you ask more things about what i've just wrote, i'm giving you some more explanations.
About the command button, the protection only works if the button have his "Locked" property checked.
About preventing access to VB editor you can disable this item from Toolbars option of View menu and intercept the Alt+F11 that opens also the editor, or in last resource you can create a new menu bar that you can control.

Bye
0
 

Author Comment

by:timjc
ID: 1444768
You were definately right about blocking access to the macro through a command button. I however found out the only fool proof way of blocking access to the code itself is to go to properties of the module and password protect the code.

Appreciate the contribution.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

830 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