Results 1 to 15 of 15

automatically-execute-an-excel-macro-on-a-cell-change

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    automatically-execute-an-excel-macro-on-a-cell-change

    I have data in column B2-B77 ...I have this macro but I dont know how to make it work with my code....If any value in this range B2-B77 change it must automatically run a macro I have named "History". Rep given for a fundi for the code to make it work -here is the code. My workbooks name is Monday and the sheets name is Seq


    Thank you

    Dim cell_to_test As Range, cells_changed As Range
    
        Set cells_changed = Target(1, 1)
        Set cell_to_test = Range( RANGE_OF_CELLS_TO_DETECT )
    
        If Not Intersect(cells_changed, cell_to_test) Is Nothing Then 
           Macro
        End If
    Last edited by ricklou; 12-17-2016 at 05:39 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to execute based on a cell value change - if enter is not pressed
    By DJDRU in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-01-2016, 11:52 PM
  2. [SOLVED] Execute macro on cell value change
    By tom.mat.walker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2015, 05:14 AM
  3. Execute a Macro automatically
    By Stonebirds in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2013, 06:24 PM
  4. Replies: 1
    Last Post: 04-10-2012, 03:21 AM
  5. Execute macro automatically after cell update
    By carlwin in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 12-19-2010, 08:56 PM
  6. On Cell change, execute macro
    By des_wes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-19-2007, 07:01 PM
  7. [SOLVED] How to execute a macro automatically at startup of Excel?
    By Radim in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-29-2006, 07:00 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