+ Reply to Thread
Results 1 to 3 of 3

Auto Recalculate instead of pressing F9

  1. #1
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    Unhappy Auto Recalculate instead of pressing F9

    Hi All,

    I've the below codes and every time i need to press F9 to recalculate it.. is there any code to add in the module to recalculate automatically when value changes.


    Please Login or Register  to view this content.
    I tried some of the codes and it doesn't work..

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Auto Recalculate instead of pressing F9

    With Application.Volatile your UDF will recalculate every time when sheet recalculates (even if it is not necessary, i.e. no change in the input arguments). http://www.cpearson.com/excel/writin...ionsinvba.aspx
    The problem is that you want the UDF to recalculate, when there is change in font color, which however does not trigger recalculations at all (value does not change).
    One work-around that comes to my mind is to use Worksheet_Change event to fire sheet recalculation (which will in turn recalculate the UDF).
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Auto Recalculate instead of pressing F9

    I do not recommend this though, safer Selection_Change rather than Change event IMO.

+ 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. Auto call macro without pressing button
    By skhari in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-17-2015, 08:56 PM
  2. [SOLVED] Auto-recalculate reference formulas when the reference is changed?
    By mstieler in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-25-2013, 01:53 PM
  3. Auto Recalculate sum if highlighted
    By titantough in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2013, 03:46 PM
  4. Auto Jumping to next cell without pressing enter
    By Steve Brown in forum Excel General
    Replies: 1
    Last Post: 01-21-2008, 02:47 PM
  5. Command button auto select after pressing Enter
    By Bafa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2006, 03:05 AM
  6. how do I turn ON auto REcalculate for formulas if new data enter?
    By Mark in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2006, 11:25 PM
  7. Auto recalculate?
    By Lee Harris in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2005, 09:00 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