Running Code Automatically

  • Thread starter Thread starter Bruno
  • Start date Start date
B

Bruno

Hi All:

How can I run code automatically in Excel XP when I open a spreadsheet?

Thanks in advance,
Bruno
 
Place your code in the ThisWorkbook Object. Using the Workbook_Open Sub.
 
Bruno,

Another way.......
If you already have a Sub...let's say
Sub Macro1()
rename it to
Sub Auto_Open()

John
 

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