+ Reply to Thread
Results 1 to 4 of 4

how to auto update these values?

  1. #1
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Question how to auto update these values?

    Col B shows the total count for each color category. It does this by referencing Col E (vba script). As you add colors to "status" (col e) it updates my totals. However, it does NOT auto update. I have manually change the value of Col A (for each color) for it to update Col B.

    How do I make column B auto update? I am also fine with a refresh button that will do "something" with col A, but I need to keep those values as is in col A

    Thank you



    ..

    Attachment 790478


    Attachment 790479
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,220

    Re: how to auto update these values?

    eeps24, it is very difficult to test code performance on images.
    Try to assign a macro to the button:
    Please Login or Register  to view this content.
    Artik

  3. #3
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: how to auto update these values?

    Thanks Artik, I am not good with VBA (I found my code from someone else). I have updated a sample copy. Can you please take a look and see if it updates? I tried to use your code but it didnt work, perhaps I did something wrong.

    Thank you!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,220

    Re: how to auto update these values?

    There is no RefreshCounter macro in the workbook shown, so it's hard for anything to work.
    Changing the fill color of a cell doesn't trigger typical Excel events, which would be useful for forcing a recalculation of formulas. Admittedly, there are methods that can replace Excel events, but each of them has some drawbacks.
    If you accept manually forcing the recalculation of formulas, then one of the following three macros associated with the button should help.
    The first two macros refer to the source ranges of the GetColorCount formulas. "Changing" the values (even if they are the same values) in the cells referenced by the function causes the function to recalculate.
    The third macro forces recalculation of all formulas (not just GetColorCount) in the active sheet.

    The choice of method is up to you.
    Please Login or Register  to view this content.
    Artik

+ 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] Auto update DV list with dynamic values
    By rotorbloke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-24-2023, 06:51 AM
  2. [SOLVED] Auto update values on a cell/cells
    By Darknezz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2022, 09:38 AM
  3. [SOLVED] Auto-update values (guessing, IF formula...)
    By vill in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-02-2017, 08:16 AM
  4. Auto update of values
    By sugarglider in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2014, 10:31 PM
  5. Set Graph to Auto-Update After Applying Values
    By yakabod in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 10-31-2013, 04:49 AM
  6. [SOLVED] Macro to auto Update values in different sheets
    By feroguz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2012, 04:24 PM
  7. Auto Update Values
    By Justinthetree in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-01-2010, 04:24 PM

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