+ Reply to Thread
Results 1 to 5 of 5

How do I detect the cell data change?

  1. #1
    Registered User
    Join Date
    04-27-2005
    MS-Off Ver
    2003
    Posts
    16

    Question How do I detect the cell data change?

    Hello experts.

    My question is:

    How do I detect the cell data change in order to run a Macro when this happens?

    Example:

    If data in cell D5 changes then run Macro1

    I'm using Excel 2003. Thanks in advance.
    "Strong is who knows his own capacities, but is still stronger who also knows his own weaknesses". Deladier M.

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: How do I detect the cell data change?

    Hi,

    You can try :
    Please Login or Register  to view this content.
    HTH

  3. #3
    Registered User
    Join Date
    04-27-2005
    MS-Off Ver
    2003
    Posts
    16

    Thanks

    I was trying the code but it did not work for me, and finally with a little change, it worked fine, like this:


    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address(False, False) = "D5" Then
    Macro1
    End If

    End Sub


    Thanks for your help.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How do I detect the cell data change?

    Please edit your post to add cde tags.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    04-27-2005
    MS-Off Ver
    2003
    Posts
    16

    Re: How do I detect the cell data change?

    I was trying the code but it did not work for me, and finally with a little change, it worked fine, like this:

    Please Login or Register  to view this content.
    Thanks for your help.

+ 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