Macro program protect

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
How can I protect my macro program? I created a bar chart with macro for a
workgroup, members need to run the macro to paint the chart manually by
Tool/macro/ run.
It is best if I can make it run automatically when member open the
worksheet, but
I don't know how?
Thanks
Daniel
 
In "This Workbook" of your VBA project

Private Sub Workbook_Open()
Module1.YourMacro
End Sub

reference what ever worksheet or module it is in

What do you mean by protect your macro?
if you want to prevent someone from seeing your code then right click on your
project in the Project viewer, select the Protection tab, check "Lock project
for viewing", and enter a password.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top