Consulting

Results 1 to 8 of 8

Thread: Check for new highs in dynamic updating cells

  1. #1

    Check for new highs in dynamic updating cells

    Hey guys,

    Pretty simple thing that is kind of hard to Google correctly. Just wondering how to check a cell that is always updating for new highs and lows, and I just want to update a static cell if we reach a new high or low in the number.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,445
    Location
    Look up Worksheet_Change event, and just apply the high value to an adjacent cell.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Hey,


    Sorry forgot to mention I was using an RTD function. It seems like VBA doesn't pick up on the changes when using this, am I right on this thought? Whenever I've looked around most things say it won't work with RTD

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,445
    Location
    Try linking a cell to the updated cell, just a simple =cell, and use the Worksheet_Calculate event.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    Quote Originally Posted by xld
    Try linking a cell to the updated cell, just a simple =cell, and use the Worksheet_Calculate event.
    Just comes up as ###### on the =cell

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,445
    Location
    Did you change cell to the actual cell reference?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    Quote Originally Posted by xld
    Did you change cell to the actual cell reference?
    Heh yea not that big of a beginner. If I left it as =cell it would just be #NAME?

    But apparently trying to reference a RTD cell just gives you #####, quite weird

  8. #8
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,445
    Location
    That is odd. Can't say I am familiar with RTD in Excel, but a quick check on MSDN suggests they might trigger a recalculate on their own, so maybe just add some Worksheet_Calculate code to try it without bothering about the linked cell.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •