LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Running macro at startup

Hi,

I think this question is asked at least twice a day, you should always
search google groups before asking (groups.google.com), that way you
would have found the answer sooner.

You must put your code inside the workbook_open event in the
ThisWorkbook code module. Either you put the code or call your macro
from there.

Private Sub Workbook_open()
'your macro
End Sub

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.

 
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
Startup Macro Max Excel Discussion (Misc queries) 6 May 24th 07 01:20 PM
Running auto correct on startup? Mitch Excel Discussion (Misc queries) 1 November 28th 05 06:38 PM
Startup macro Zeno Excel Discussion (Misc queries) 1 June 29th 05 01:06 PM
Run a macro at startup Robyn Thomas Excel Programming 1 January 10th 04 09:44 PM
running macro upon a spreadsheet's startup Joe S. Excel Programming 2 December 16th 03 10:00 PM


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