LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default calculate cell formulas during VBA sub


Try inserting the line "Calculate" without the quotes when you want the
formulas to be figured.

for example:

Sub runcalc()
ActiveCell.FormulaR1C1 = "5"
Calculate
Range("A7").Select
ActiveCell.FormulaR1C1 = "4"
Range("A8").Select
End Sub

this puts a value of 5 in the active cell calculates the worksheet then
continues with the code.

Hope it helps.


--
goober
------------------------------------------------------------------------
goober's Profile: http://www.excelforum.com/member.php...o&userid=19838
View this thread: http://www.excelforum.com/showthread...hreadid=494875

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My formulas will not calculate AnneFromBVMktg Excel Worksheet Functions 5 August 20th 08 06:43 PM
Formulas will not calculate DeeJay Excel Worksheet Functions 0 October 6th 06 04:25 AM
How can I calculate Several Cell adding Formulas? David Marinez Excel Discussion (Misc queries) 2 July 20th 06 05:20 PM
How do I calculate pro-rata formulas? dukes Excel Worksheet Functions 3 November 10th 05 03:57 AM
formulas won't calculate Indigo Boy Excel Worksheet Functions 1 May 16th 05 09:53 PM


All times are GMT +1. The time now is 09:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"