Solved

Hiding macros

Posted on 1998-11-13
3
281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

752 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