Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Worksheet Activation from another workbook

Worksheet_Activate() works great from within a workbook. But when I switch
workbooks and come back, the code in Worksheet_Activate() does not run.

What do I need to do to get the code to run when re-entering from another
workbook?

As always, any help is always appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Worksheet Activation from another workbook

That is because it is already active within that workbook.

Add some code to the Workbook_Activate event in the ThisWorkbook code
module.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Ronbo" wrote in message
...
Worksheet_Activate() works great from within a workbook. But when I

switch
workbooks and come back, the code in Worksheet_Activate() does not run.

What do I need to do to get the code to run when re-entering from another
workbook?

As always, any help is always appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Worksheet Activation from another workbook

Maybe you could use Workbook_activate (under thisworkbook). But that doesn't
apply if you're changing applications.



Ronbo wrote:

Worksheet_Activate() works great from within a workbook. But when I switch
workbooks and come back, the code in Worksheet_Activate() does not run.

What do I need to do to get the code to run when re-entering from another
workbook?

As always, any help is always appreciated.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Worksheet Activation from another workbook

Thanks to both - Thats what I should have been doing from the start, rater
than putting code in each sheet. DA!

"Bob Phillips" wrote:

That is because it is already active within that workbook.

Add some code to the Workbook_Activate event in the ThisWorkbook code
module.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Ronbo" wrote in message
...
Worksheet_Activate() works great from within a workbook. But when I

switch
workbooks and come back, the code in Worksheet_Activate() does not run.

What do I need to do to get the code to run when re-entering from another
workbook?

As always, any help is always appreciated.




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
activation key LewisT Excel Discussion (Misc queries) 2 March 24th 10 05:27 AM
Workbook activation code alanford Excel Programming 4 February 20th 05 01:31 AM
Workbook activation issue Petr Excel Programming 1 February 3rd 05 10:58 AM
Ctl-X activation of macros John Baker Excel Programming 1 October 17th 03 09:24 PM
Detecting workbook activation Jack Wolf Excel Programming 0 July 26th 03 01:10 AM


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