Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Run Macros When Spreadsheet is Open


I would like to run macros date_check and date_close when the spreadsheet is
first open.

Please help me complete this task.

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Run Macros When Spreadsheet is Open

Joe K

Place this code in the ThisWorkbook code module.

Sub Auto_Open()

date_check
date_Close

End Sub


"Joe K." wrote:


I would like to run macros date_check and date_close when the spreadsheet is
first open.

Please help me complete this task.

Thanks,

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Run Macros When Spreadsheet is Open

On Oct 16, 7:22 pm, Joe K. <Joe wrote:
I would like to run macros date_check and date_close when the spreadsheet is
first open.

Please help me complete this task.

Thanks,


Hello Joe,

Place your macros in either the Workbook_Open event procedure, or the
Auto_Open procedure. If you need to activate a given sheet as well for
your macro to run then include add the appropriate Sheet names to the
procedures as well.

Sub Auto_Open()
'Sheets("Sheet1").Activate
date_check
date_Close
End Sub

Sub Wokrbook_Open()
'Sheets("Sheet1").Activate
date_check
date_close
End Sub

Sincerely,
Leith Ross

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
Spreadsheet will not open without Excel Application being open fir Deirdre Lysaght Excel Discussion (Misc queries) 1 November 13th 07 04:11 PM
How to open a spreadsheet with Macros disabled Mauricio Silva Excel Discussion (Misc queries) 6 March 24th 05 01:59 PM
Open workbook-macros enabled, opening another with macros George J Excel Programming 5 September 17th 04 02:07 PM
Macro Size Limit / open macros with macros? andycharger[_7_] Excel Programming 6 February 13th 04 02:00 PM
How to open another Excel spreadsheet to copy data into current spreadsheet ? Ricky Pang Excel Programming 0 July 13th 03 01:59 PM


All times are GMT +1. The time now is 07:35 AM.

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"