Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Running Code Automatically

Hi All:

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

Thanks in advance,
Bruno


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default 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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running code on workdays chrisnsmith Excel Worksheet Functions 2 February 4th 09 06:58 PM
VB code for running a macro rcc Excel Discussion (Misc queries) 3 January 23rd 08 02:53 AM
Automatically running code Richard Excel Worksheet Functions 1 February 7th 06 09:35 PM
running code mark New Users to Excel 3 March 14th 05 09:14 AM
running VB code Cath[_3_] Excel Programming 1 November 21st 03 05:09 PM


All times are GMT +1. The time now is 02:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"