Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default Workbook_Activate() vs Workbook_Open()

So, when a user opens my Excel file, my Visual Basic script
is going to automatically fill the cells on the current sheet with
predetermined values....

My question is, does it make a difference if I place my
auto fill code into the Workbook_Activate() function
as opposed to the Workbook_Open() function??
I know that Workbook_Open() gets called before
Workbook_Activate()....so does it really matter WHERE
I place my initilization/auto fill code??

Thank you


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Workbook_Activate() vs Workbook_Open()

If you put it in the WB Open event, it only runs that one time to autofill
the cells. But if yoiu use the Activate event, it will run every time you
return to that workbook from another file triggering the activate event.
Other than that it probably doesn't matter too much.



"Robert Crandal" wrote in message
...
So, when a user opens my Excel file, my Visual Basic script
is going to automatically fill the cells on the current sheet with
predetermined values....

My question is, does it make a difference if I place my
auto fill code into the Workbook_Activate() function
as opposed to the Workbook_Open() function??
I know that Workbook_Open() gets called before
Workbook_Activate()....so does it really matter WHERE
I place my initilization/auto fill code??

Thank you




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
Disable Workbook_Activate inside another macro... SpeeD Excel Programming 2 February 20th 09 07:55 PM
Problem with Workbook_Activate event donwb Excel Programming 3 May 1st 08 09:07 PM
Workbook_Activate not triggered by Alt+Tab Antoun Excel Programming 17 March 8th 07 03:25 PM
Manually call Workbook_Activate procedure joeeng Excel Programming 2 February 12th 07 04:35 PM
Workbook_Activate question Peter Rooney Excel Programming 4 November 17th 05 10:18 AM


All times are GMT +1. The time now is 02:43 AM.

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"