Closed Thread
Results 1 to 2 of 2

Multiple change events

Hybrid View

MrPez Multiple change events 08-26-2009, 07:09 AM
DonkeyOte Re: Multiple change events 08-26-2009, 07:13 AM
  1. #1
    Registered User
    Join Date
    07-28-2009
    Location
    Newcastle
    MS-Off Ver
    Excel 2003
    Posts
    38

    Multiple change events

    I've got a problem with change events...

    At the minute I have a worksheet that triggers a macro when the value of a certain cell changes. It works fine, and the code is:


    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    If Target.Row = 2 And Target.Column = 1 Then
    call module1.import
    End If
    End Sub


    My problem is that I am trying to set up the same again that watches another cell and when that value changes it calls a different module. I've tried calling it something like
    Private Sub Worksheet_Change2(ByVal Target As Excel.Range)
    to make it different from the first but it just does nothing. Can you only have one change event per worksheet/workbook? If so, can anyone think of a way around this?

    Thanks in advance...
    Pez

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Multiple change events

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

Closed 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