Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Is there a SUB like "Sub Worksheet_De-Activate()"?

Private Sub Worksheet_SelectionChange()
Private Sub Worksheet_Activate()

Is there actions I can take when the current Workshhet is being "left" as
opposed to Activate?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Is there a SUB like "Sub Worksheet_De-Activate()"?

Hi,

CRayF,

The event you are looking for is the Worksheet_Deactivate event.

If you select 'Worksheet' in the first dropdown box at the top of the
worksheet code module, the second dropdown box will list all available
events.


---
Regards,
Norman



"CRayF" wrote in message
...
Private Sub Worksheet_SelectionChange()
Private Sub Worksheet_Activate()

Is there actions I can take when the current Workshhet is being "left" as
opposed to Activate?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Is there a SUB like "Sub Worksheet_De-Activate()"?

All of the available events are listed in the drop down boxes just above the
code window. The events exits in sheets or in the ThisWorkBook object. Just
above the upper left of the code window change the drop down from General to
(whatever is listed, worksheet, button, ...). When you do this a procedure
will be dropped into the code window (you can just delete it if it is not the
event you want). The Drop down in the upper right above the code window will
list all of the events that the item you have chosen can respond to. Select
the one you want and you are good to go...
--
HTH...

Jim Thomlinson


"CRayF" wrote:

Private Sub Worksheet_SelectionChange()
Private Sub Worksheet_Activate()

Is there actions I can take when the current Workshhet is being "left" as
opposed to Activate?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Is there a SUB like "Sub Worksheet_De-Activate()"?

Hi CRayF,

Additionally, you might care to visit Chip Pearson's page on event
procedures at:

http://www.cpearson.com/excel/events.htm


---
Regards,
Norman



"CRayF" wrote in message
...
Private Sub Worksheet_SelectionChange()
Private Sub Worksheet_Activate()

Is there actions I can take when the current Workshhet is being "left" as
opposed to Activate?



  #5   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Is there a SUB like "Sub Worksheet_De-Activate()"?

Private Sub Worksheet_Deactivate()


"CRayF" wrote:

Private Sub Worksheet_SelectionChange()
Private Sub Worksheet_Activate()

Is there actions I can take when the current Workshhet is being "left" as
opposed to Activate?



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Is there a SUB like "Sub Worksheet_De-Activate()"?

Thanks Jim,
This has helped.

"Jim Thomlinson" wrote:

All of the available events are listed in the drop down boxes just above the
code window. The events exits in sheets or in the ThisWorkBook object. Just
above the upper left of the code window change the drop down from General to
(whatever is listed, worksheet, button, ...). When you do this a procedure
will be dropped into the code window (you can just delete it if it is not the
event you want). The Drop down in the upper right above the code window will
list all of the events that the item you have chosen can respond to. Select
the one you want and you are good to go...
--
HTH...

Jim Thomlinson


"CRayF" wrote:

Private Sub Worksheet_SelectionChange()
Private Sub Worksheet_Activate()

Is there actions I can take when the current Workshhet is being "left" as
opposed to Activate?

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
How to Activate "Show all" in a Protected Shared Workbook Anahid Excel Discussion (Misc queries) 1 November 27th 09 01:44 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How do I activate the "greyed out" hyperlink function crossroads Excel Discussion (Misc queries) 2 November 14th 06 12:28 AM
Checking before opening "activate:newwindow" to see if already opened sam s via OfficeKB.com Excel Programming 2 September 20th 05 02:37 AM
selection.find shortening the procedure by skipping the "activate" part Peter[_21_] Excel Programming 1 November 10th 04 11:56 PM


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