Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default is there a before_worksheet_deactive sub


basically what the title says there is a worksheet deactivate sub but i
there a before worksheet deactivate sub or is it just as simple a
typing before infront thank

--
short_n_curl
-----------------------------------------------------------------------
short_n_curly's Profile: http://www.excelforum.com/member.php...fo&userid=2157
View this thread: http://www.excelforum.com/showthread.php?threadid=38533

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default is there a before_worksheet_deactive sub

If it's not in those dropdowns above the code window, it doesn't exist.

(Just because you can type it, doesn't mean that excel will recognize it as an
event.)

===
There are two dropdowns at the top of the codewindow.

Change the left hand side to Worksheet
and you'll see all the events that belong to the worksheet in the righthand side
dropdown.

You can read more about events at:
Chip Pearson's site:
http://www.cpearson.com/excel/events.htm

David McRitchie's site:
http://www.mvps.org/dmcritchie/excel/event.htm

short_n_curly wrote:

basically what the title says there is a worksheet deactivate sub but is
there a before worksheet deactivate sub or is it just as simple as
typing before infront thanks

--
short_n_curly
------------------------------------------------------------------------
short_n_curly's Profile: http://www.excelforum.com/member.php...o&userid=21576
View this thread: http://www.excelforum.com/showthread...hreadid=385334


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default is there a before_worksheet_deactive sub

"short_n_curly"
wrote in message
news:short_n_curly.1rtcqg_1120763181.0078@excelfor um-nospam.com...

basically what the title says there is a worksheet deactivate sub but is
there a before worksheet deactivate sub or is it just as simple as
typing before infront thanks



Hi Short_n_curly,

What is it that you are trying to do?

In a new workbook, copy the following into the module behind sheet1.

Private Sub Worksheet_Deactivate()
Range("A1").Value = _
"This was written before I left Sheet1!"
End Sub

Then (with Sheet1 active) select another sheet., return to Sheet, look at
A1.

Does that help?

---
Regards,
Norman




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



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