+ Reply to Thread
Results 1 to 2 of 2

Locating cell change event handler

Hybrid View

  1. #1
    John
    Guest

    Locating cell change event handler

    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

  2. #2
    Norman Jones
    Guest

    Re: Locating cell change event handler

    Hi John,

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


    ---
    Regards,
    Norman


    "John" <John@discussions.microsoft.com> wrote in message
    news:4EDD5691-12C8-41BD-BFC0-C4DFC07045E5@microsoft.com...
    >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




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1