+ Reply to Thread
Results 1 to 6 of 6

Run Macro When Formula Result Changes in multiple ranges

  1. #1
    Registered User
    Join Date
    09-27-2018
    Location
    Eindhoven
    MS-Off Ver
    2016
    Posts
    6

    Question Run Macro When Formula Result Changes in multiple ranges

    Hello,

    I found this forum thread:
    excelforum.com/excel-programming-vba-macros/1008582-run-macro-when-formula-result-changes.html

    I got the code as they describe it (see code below).

    Now i like to use this code for multiple ranges, but i dont know how.

    My ranges are:
    - ("G92,HH92")
    - ("G103,HH103")
    - ("G114,HH114")

    if its possible i like to use named ranges (dynamic ranges)

    Simply said: If a certain range is changed, a cell needs to get value =1. Not for 1 range but for multiple ranges.


    Please Login or Register  to view this content.
    Last edited by jellevdh; 11-29-2019 at 08:34 AM.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Run Macro When Formula Result Changes in multiple ranges

    Untested, try to add all ranges:
    Please Login or Register  to view this content.
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    09-27-2018
    Location
    Eindhoven
    MS-Off Ver
    2016
    Posts
    6

    Re: Run Macro When Formula Result Changes in multiple ranges

    Thanks for your reply, i forgot to mention that if the first given range is changed, then C92 needs to change to 1
    if The second range is changed("G103,HH103"), then C103 needs to change to 1

    and so on

  4. #4
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: Run Macro When Formula Result Changes in multiple ranges

    Hi jellevdh,

    if you are still looking for a solution..

    Please Login or Register  to view this content.
    or with named ranges

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-27-2018
    Location
    Eindhoven
    MS-Off Ver
    2016
    Posts
    6

    Re: Run Macro When Formula Result Changes in multiple ranges

    Thanks for your reply i will test this on monday

  6. #6
    Registered User
    Join Date
    09-27-2018
    Location
    Eindhoven
    MS-Off Ver
    2016
    Posts
    6

    Re: Run Macro When Formula Result Changes in multiple ranges

    Hello, I'm testing the one with the named ranges. It is not working because my range gets changes by a formula. How does it work then?

+ 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. Replies: 1
    Last Post: 11-02-2018, 04:15 AM
  2. [SOLVED] Formula to count occurrences, multiple ranges, multiple criteria, with wildcard
    By TMMc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2017, 03:27 PM
  3. [SOLVED] Need Excel formula to use INDEX and MATCH with multiple criteria's over multiple ranges.?
    By mchilapur in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2017, 08:56 AM
  4. Formula for Counting Multiple Words in Multiple Ranges
    By billdigo1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-16-2015, 06:11 PM
  5. Formula for Counting Multiple Ranges and Multiple Criteria
    By musicman1985 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-29-2014, 05:43 AM
  6. Macro to subrtract two ranges and compare the result with condition
    By naga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-02-2013, 11:03 AM
  7. Excel 2007 : Index, Match, Large Formula: Multiple Criteria, Multiple Ranges
    By SimpleJack in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-19-2013, 08:54 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