+ Reply to Thread
Results 1 to 4 of 4

Macro doesn`t trigger when cell value changes

  1. #1
    Registered User
    Join Date
    07-02-2018
    Location
    Drunen
    MS-Off Ver
    2013
    Posts
    60

    Macro doesn`t trigger when cell value changes

    Hi,

    in Sheet1 there is a simple formula in A1 that counts totals from different sheets : =H52+'sheet2'!H51+'sheet3'!H43. The value displayed is correct, however the value won`t work with either conditional formatting or macro`s.
    For example when value return from formula in A1 is 1100. I compare this will a value in B1 that is 1000, the following macro doesn`t give any results:

    Please Login or Register  to view this content.
    Same for the conditional formatting, when i set this to =$A$1>$B$1 change to red, this doesn`t work
    Last edited by MrMyagiii; 07-26-2018 at 06:14 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,493

    Re: Macro doesn`t trigger when cell value changes

    It won't. 1000 is generally considered to be less than 1100.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-02-2018
    Location
    Drunen
    MS-Off Ver
    2013
    Posts
    60

    Re: Macro doesn`t trigger when cell value changes

    lol, good example. Editted now

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,493

    Re: Macro doesn`t trigger when cell value changes

    You're welcome.


    As it happens, your example



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Trigger Macro when a cell value changes
    By NDBC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-22-2017, 04:27 AM
  2. [SOLVED] Macro not trigger on cell value change
    By jeetusaini85 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 02-05-2015, 08:37 AM
  3. Window resize doesn't trigger a line of code
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-24-2015, 12:11 PM
  4. Adjust a code from cell range trigger to button trigger
    By ld2x07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2014, 10:02 AM
  5. TextBox_Exit event doesn't trigger
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-03-2010, 05:08 PM
  6. Trigger a macro when leaving a cell
    By jiminic in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2007, 04:49 AM
  7. Cell change to trigger Macro
    By Sören_Marodören in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2006, 06:15 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