Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2002 Automatic Macros

Is there a way to have a macro run automatically when a
workbook is opened, or is such a feature unavailable for
security reasons?

Thanks,

CM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Excel 2002 Automatic Macros

Here's a response from John Wilson in an earlier post
today:

Two ways.....

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

-----Original Message-----
Is there a way to have a macro run automatically when a
workbook is opened, or is such a feature unavailable for
security reasons?

Thanks,

CM
.

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
Excel (2002) slow after deleting some macros Peter[_14_] Excel Discussion (Misc queries) 0 April 18th 10 09:06 PM
Macros Excel 2002 updating file names cbaliles Excel Discussion (Misc queries) 1 March 31st 09 07:36 PM
Macros in Excel 2002 Somewhere In Excel 2002 Excel Worksheet Functions 1 August 26th 07 12:16 PM
How to enable macros and automatic calculation on Excel Viewer? David Excel Worksheet Functions 2 April 5th 07 08:53 PM
Help for old macros with Excel 2002 Lou Excel Worksheet Functions 6 October 7th 05 06:15 AM


All times are GMT +1. The time now is 04:41 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"