ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Running Code Automatically (https://www.excelbanter.com/excel-programming/289809-running-code-automatically.html)

Bruno[_2_]

Running Code Automatically
 
Hi All:

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

Thanks in advance,
Bruno



Terry Frost

Running Code Automatically
 
Place your code in the ThisWorkbook Object. Using the Workbook_Open Sub.


"Bruno" wrote in message
...
Hi All:

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

Thanks in advance,
Bruno





John Wilson

Running Code Automatically
 
Bruno,

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

John

"Terry Frost" wrote in message
...
Place your code in the ThisWorkbook Object. Using the Workbook_Open Sub.


"Bruno" wrote in message
...
Hi All:

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

Thanks in advance,
Bruno








All times are GMT +1. The time now is 01:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com