Solved

Hiding macros

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

777 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