Solved

Hiding macros

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Suggested Courses
Course of the Month8 days, 21 hours left to enroll

615 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