Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Locating cell change event handler

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 22 Jan 2006 01:29 GMT
I have a workbook w/ 10 or so sheets and I  want to put in an event handler
to call different macros if different cells are changed by the user. For
testing I've tried putting the following routine in one and all of Modules
1-5 of the workbook project, but can't seem to get it triggered. What am I
doing wrong?

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
   MsgBox "Range " & Target.Address & " was changed."
End Sub
Norman Jones - 22 Jan 2006 01:44 GMT
Hi John,

Worksheet event procedures should be placed in the sheet module -right-click
the sheet tab, View Code.

---
Regards,
Norman

>I have a workbook w/ 10 or so sheets and I  want to put in an event handler
> to call different macros if different cells are changed by the user. For
[quoted text clipped - 5 lines]
>    MsgBox "Range " & Target.Address & " was changed."
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.