Call macro after "macros are enabled"

F

fish

Hi there,

I am quite a noob in programing VBA so this question might seem really
trivial to some of you, but unfortunalty it is not for me ;)

I want to start a macro, after the user has accepted the default security
message, excel is showing. Disabling this message is not possible, because
the sheet has to work on "any" computer in the company.

So, how is it possible to start a macro, right after the user has enabled
them?

Thanks in advance and sorry for my bad english.

Great regards,
fish
 
R

Roger Govier

Hi

Either place the code in ThisWorkbook as a Workbook_Open event
Private Sub Workbook_Open()

.... your code

End Sub

or in a regular modular with a name of

Sub Auto_Open()

.. your code

End sub

--
Regards
Roger Govier

fish said:
Hi there,

I am quite a noob in programing VBA so this question might seem really
trivial to some of you, but unfortunalty it is not for me ;)

I want to start a macro, after the user has accepted the default security
message, excel is showing. Disabling this message is not possible, because
the sheet has to work on "any" computer in the company.

So, how is it possible to start a macro, right after the user has enabled
them?

Thanks in advance and sorry for my bad english.

Great regards,
fish

__________ Information from ESET Smart Security, version of virus
signature database 4846 (20100208) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature database 4846 (20100208) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 

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

Top