Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Enable toolbar button in one specific worksheet

Hi,

I have a five-worksheet excel book and I need to disable a button in a
custom toolbar if the user is not in one specific worksheet. I know how to
disable the button but I can't figure out how to trigger the event when the
user switches worksheets.

any ideas?

Thanks
--
JuanK
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Enable toolbar button in one specific worksheet

Private Sub Worksheet_Activate()
'your code
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.



--
HTH

Bob Phillips

"JuanK" wrote in message
...
Hi,

I have a five-worksheet excel book and I need to disable a button in a
custom toolbar if the user is not in one specific worksheet. I know how to
disable the button but I can't figure out how to trigger the event when

the
user switches worksheets.

any ideas?

Thanks
--
JuanK



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
Can I move a button from toolbar to a worksheet? Arty[_2_] Excel Discussion (Misc queries) 1 April 21st 10 11:49 PM
How do I put a toolbar button into a worksheet? Diamond1974 Excel Worksheet Functions 1 November 16th 06 01:41 PM
Displaying Custom Toolbar in Specific Worksheet Thomas M[_2_] Excel Programming 4 February 1st 05 05:37 PM
how to enable / disable customised button on toolbar tango Excel Programming 0 October 23rd 04 12:19 AM
Macro to enable or visible on specific worksheet only Edgar Excel Programming 4 May 31st 04 07:26 AM


All times are GMT +1. The time now is 04:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"