Computing.Net > Forums > Programming > Excel formula autoupdate

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel formula autoupdate

Reply to Message Icon

Name: Ken
Date: July 23, 2002 at 19:25:34 Pacific
Comment:

My friend wrote a short VBA macro for me (Excel), to calculate something. Problem is as the values in the cells it references change, it doesn't update the result - I have to type in the formula again and press "Enter" to manually update the info. How can I get it to autoupdate? Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: A Certain TH
Date: July 24, 2002 at 00:39:23 Pacific
Reply:

Under "Tools" "Options" you can switch calculations between manual and automatic.

I would guess that you may not want to have calculations on automatic if you re working with a very large/complicated spreadsheet.

If you are on manual calcs, then press F9 to calculate everything in every open workbook, or Shift+F9 to just calculate the sheet you are looking at.


If you want the code to do the calculation for you, then find the end of the macro and enter the following two lines (before 'End Sub'):

Range("A1:A5").Calculate

Change the range to suit the range with your formula in it (if its a single cell, then use Range("A3").

Of course, you could just use:

ActiveSheet.Calculate instead, but if there are LOADS of calculations on your sheet, or some reason why you wouldn't want it to update, then this might cause you problems.

Hope this is what you were after - post back if you need any more help.

Tom


0
Reply to Message Icon

Related Posts

See More


Video Game Programing repairing [mbr]



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Excel formula autoupdate

Excel formula www.computing.net/answers/programming/excel-formula/9347.html

Excel Formula help www.computing.net/answers/programming/excel-formula-help/11193.html

Help With Excel Formula www.computing.net/answers/programming/help-with-excel-formula/16708.html