+ Reply to Thread
Results 1 to 3 of 3

run a macro when a range of cell are changed

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    25

    run a macro when a range of cell are changed

    Hi. can anyone help me please?

    I have the code below but isn't working

    Private Sub Worksheet_Change(ByVal Target As Range)
    If (Target.Address = Sheets("Pivot").Range("l7:r43")) Then
    Call ThisWorkbook.Macro1
    End If
    End Sub



    Thanks

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: run a macro when a range of cell are changed

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-16-2013
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: run a macro when a range of cell are changed

    Quote Originally Posted by JOHN H. DAVIS View Post
    Maybe:

    Please Login or Register  to view this content.
    Hi. it didn't work. The cell already have a value and i changed the value, but the macro didn't run

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro only works once as range value has changed
    By kennected in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-02-2012, 02:28 PM
  2. change values in a range when cell value is changed in that row
    By hattisaeed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2011, 09:14 AM
  3. macro to run on entire range, not just changed cells
    By davemcguire in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2011, 10:02 AM
  4. Macro Each time range in column a is changed
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-25-2008, 12:08 PM
  5. [SOLVED] run macro when a range is changed
    By RichardVisteon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2006, 08:50 AM

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