Microsoft
Software
Hardware
Network
Question : Centrally run macro - deployment
Hi Experts!
how do i deploy a macro(which I have and it works) so that it runs everytime a user opens his/her workbook?
ex : the user gets a spreadsheet in the mail and he/she clicks on it and the macro runs.
also the user must not be able to see the code.
Answer : Centrally run macro - deployment
Hi Arun,
1. You can call the macro by using the following code -
Private Sub Workbook_Open()
Call Macro
End Sub
2. To protect the code so that the user cant see it, you can password protect it. See attached screenshot #2.
Thanks,
Ardhendu
Workbook-Open.png
(26 KB)
(File Type Details)
Screenshot
password.png
(48 KB)
(File Type Details)
password
Random Solutions
Creating Log table
Need help with exisiting code. reading attachments and save to MS Access
How to calculate the sum of a bound column in a GridView control for manipulation in VB Code-Behind
Draw a scroll bar into non-client area
Forefront client Security and Server management Console
Changing Primary SMTP Address
Access Report Design
help with Scalar-valued function
How to prevent "Request Timed Out" error in aspx pages? How to increase the timeout?
Parameter dialog box unexpectedly pops up while dynamically linking unbound subforms to a main form