+ Reply to Thread
Results 1 to 3 of 3

Running Macro on cell change in a range in one workbook on a different workboox

  1. #1
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Running Macro on cell change in a range in one workbook on a different workboox

    Hello,

    I have all my Macros in a .xlsm workbook and they act on a 2nd open .xlsx worxbook

    I need to run a macro on cell change within a range (cells in column A) in the .xlsx file on sheet(2)

    Is it possible to do this from the 1st .xlsm workbook?

    I found many variations of the macro below but they all need the code to be placed in the Sheet of the column with the cells that change, which is a .xlsx file not a .xlsm file

    Thanks for any help on this



    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Running Macro on cell change in a range in one workbook on a different workboox

    Hello capson,

    Is the macro you posted in the first or second workbook? The second workbook must have a Worksheet_Change event macro. Without the macro in the second workbook, you will not be able to respond to when a cell changes on the worksheet. Bear in mind that this event will be triggered either by keyboard input or from VBA code. It will not be triggered by a formula result changing.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Running Macro on cell change in a range in one workbook on a different workboox

    Thanks, I was thought that would be the case, thanks I will use a command button instead

+ 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. [SOLVED] Macro for running a macro when any cell in a range of cells changes
    By gm2612 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-27-2013, 11:36 PM
  2. Change range of cells within VBA macro and copy and paste to fixed cell range
    By Mannyny in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-20-2012, 11:51 AM
  3. Running macro when a paste action is detected in a specific range of cell
    By Skell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2012, 01:39 PM
  4. Macro to change range of Chart on Workbook Open
    By mcraj12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2011, 09:51 AM
  5. How to refer the values in another workboox using Macro/formula?
    By ananthakumar.e in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2008, 05:58 AM

Tags for this Thread

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