Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Automate macro

Hi,
Is it possible to have a macro run automatically when a
particular spreadsheet opens?
I'm in Excel 2000 and Windows 98.

Thanks,

Marc
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Automate macro

Marc,

Two ways.....

1st is to name your macro Auto_Open

Sub Auto_Open()
'your code here or your sub name here
End Sub

or place your code (or a call to your sub) in the Workbook_Open Event
Double click on the "ThisWorkbook" in the "Projects" window and copy
and paste the following:

Private Sub Workbook_Open()
'your code here or your sub name here
End Sub

John


Marc wrote:

Hi,
Is it possible to have a macro run automatically when a
particular spreadsheet opens?
I'm in Excel 2000 and Windows 98.

Thanks,

Marc


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Automate macro

Thanks John

That worked! And thanks for such a quick response.

Marc

-----Original Message-----
Marc,

Two ways.....

1st is to name your macro Auto_Open

Sub Auto_Open()
'your code here or your sub name here
End Sub

or place your code (or a call to your sub) in the

Workbook_Open Event
Double click on the "ThisWorkbook" in the "Projects"

window and copy
and paste the following:

Private Sub Workbook_Open()
'your code here or your sub name here
End Sub

John


Marc wrote:

Hi,
Is it possible to have a macro run automatically when a
particular spreadsheet opens?
I'm in Excel 2000 and Windows 98.

Thanks,

Marc


.

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
Automate Macro Jeremy Excel Discussion (Misc queries) 3 June 29th 09 11:22 PM
Automate Macro jenniferspnc Excel Discussion (Misc queries) 2 September 12th 08 05:22 PM
Automate Macro Sherry Excel Discussion (Misc queries) 4 May 16th 08 06:18 PM
Automate Macro Chiku Excel Discussion (Misc queries) 0 December 15th 05 01:25 AM
Automate Macro Chiku Excel Discussion (Misc queries) 0 December 15th 05 01:25 AM


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

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

About Us

"It's about Microsoft Excel"