Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Worksheet Deactivation Event

I am trying to enable a macro to run when a particular worksheet is
deselected.

Thus far I have followed the directions on this web page:

http://exceltips.vitalnews.com/Pages...tiva ted.html

However I am recieving an error:

Cannot Find FileName!MacroName.

I am asking for either help with this method to correct the error or if
anyone knows a different method--I don't mind doing it in VBA, I just don't
know how yet.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Worksheet Deactivation Event

Place the following code in the worksheet code area


Private Sub Worksheet_Deactivate()
Call MyMacro
End Sub

--
Cheers
Nigel



"DynamiteSkippy" wrote in message
...
I am trying to enable a macro to run when a particular worksheet is
deselected.

Thus far I have followed the directions on this web page:


http://exceltips.vitalnews.com/Pages...tiva ted.html

However I am recieving an error:

Cannot Find FileName!MacroName.

I am asking for either help with this method to correct the error or if
anyone knows a different method--I don't mind doing it in VBA, I just

don't
know how yet.



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
Help with worksheet event NZuser Excel Worksheet Functions 6 April 20th 09 11:01 AM
Prevent deactivation of sheet Kobus Excel Programming 1 April 15th 05 10:37 AM
Event Procedures: Event on Worksheet to fire Event on another Worksheet Kathryn Excel Programming 2 April 7th 04 07:35 PM
Copying Worksheet triggers Click event of combobox on another worksheet Robert[_20_] Excel Programming 0 January 23rd 04 07:40 PM
macro to apply worksheet event to active worksheet Paul Simon[_2_] Excel Programming 3 August 7th 03 02:50 AM


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