Solved

Hiding macros

Posted on 1998-11-13
3
277 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

757 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

18 Experts available now in Live!

Get 1:1 Help Now