Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default workbook open event

I have a public sub call "Test1". I want to make this
macro run when the workbook is open but I'm not sure how
to use the workbook open event. Any help would be greatly
appreciated. Thanks...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default workbook open event

Private Sub Workbook_Open()
'YOUR CODE
End Sub

put this in the "ThisWorkbook" module

"JT" wrote in message
...
I have a public sub call "Test1". I want to make this
macro run when the workbook is open but I'm not sure how
to use the workbook open event. Any help would be greatly
appreciated. Thanks...



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default workbook open event

Put this in the ThisWorkbook code module (with Test1 in a regular code
module):

Private Sub Workbook_Open()
Test1
End Sub


In article ,
"JT" wrote:

I have a public sub call "Test1". I want to make this
macro run when the workbook is open but I'm not sure how
to use the workbook open event. Any help would be greatly
appreciated. Thanks...

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
Workbook open event Pawan Excel Worksheet Functions 7 August 26th 08 07:32 AM
Event: open workbook Jeff Excel Discussion (Misc queries) 1 September 28th 06 02:58 PM
Workbook Open event Libby Excel Programming 1 November 29th 04 04:10 PM
Workbook Open Event Stuart[_5_] Excel Programming 1 July 6th 04 08:47 PM
Workbook Open Event Dave Peterson[_3_] Excel Programming 0 October 17th 03 02:38 AM


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