Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default name of a macro to auto run

Hi...what do I name a macro to get it to run when I open a workbook.

Thanks in advance.

Pete
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default name of a macro to auto run

Hi Pete

Sub Auto_open()

HTH. Best wishes Harald


"Pete Jones" skrev i melding
...
Hi...what do I name a macro to get it to run when I open a workbook.

Thanks in advance.

Pete



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default name of a macro to auto run

Private Sub workbook_Open()

end Sub

and place it in the ThisWorkbook.Module

or use the older


Sub Auto_Open()

end Sub

and place it in a general module.

--
Regards,
Tom Ogilvy

"Pete Jones" wrote in message
...
Hi...what do I name a macro to get it to run when I open a workbook.

Thanks in advance.

Pete



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
Sub Macro vrs Function Macro Auto Start Pat Excel Discussion (Misc queries) 7 June 6th 07 09:53 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Macro - Auto Run Gary Excel Worksheet Functions 1 May 12th 06 08:29 PM
Auto Run a Macro Pam Coleman Excel Discussion (Misc queries) 2 May 3rd 05 02:58 PM
Auto-run ONCE macro CLR Excel Programming 9 October 12th 03 03:23 AM


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