Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 866
Default WORKSHEET CHANGE HANDLER

Hello. I want to run a function when a user clicks to view a particular
worksheet. I know a button click event would look like the following:

Sub btnMyButton_Click

End Sub

Is there a change handler that watches when a user goes to a particular
worksheet? If not, is there something similar I can use?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default WORKSHEET CHANGE HANDLER

Dan,
You have
Private Sub Worksheet_Activate()
as an event on each worksheet or
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
as an event on ThisWorknook

NickHK

"Dan" wrote in message
...
Hello. I want to run a function when a user clicks to view a particular
worksheet. I know a button click event would look like the following:

Sub btnMyButton_Click

End Sub

Is there a change handler that watches when a user goes to a particular
worksheet? If not, is there something similar I can use?



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
Error handler linto Excel Discussion (Misc queries) 1 February 11th 10 12:17 PM
Error Handler sharad Excel Discussion (Misc queries) 1 September 17th 07 06:38 PM
Worksheet Handler (int) Edi Excel Programming 0 February 21st 05 01:55 PM
Registering an even handler John Davidson Excel Programming 0 June 1st 04 08:49 PM
error handler Fleur Excel Programming 1 November 20th 03 06:06 AM


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