Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formulas don't calculate


Hi!
I have a workbook with alot of macros. Sometimes (not always) I have
formulas (not always the same formulas) that will not calculate even
though they appear OK. I have to rebuild the dependancy tree
(ctrl+alt+shift+F9) to get them to calculate.
Since I am a novice at this (VB) I may have some bad code causing the
problem. Is there a code that will cause you to rebuild the dependancy
tree? What might it look like so I can start my search?

Thanks for any suggestions or help! And thanks for your time!!


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=555572

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Formulas don't calculate

Hi Brian -

Try adding this to the end of your macro:

application.CalculateFull

If this doesn't work then try:

Add this macro to your workbook

Sub CalculateFull()
application.CalculateFull
End Sub

then add this to the end of each of your macros

application.Run "' Workbook Name .xls'!CalculateFull"

Good luck

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formulas don't calculate


Thanks Baron! I'll try it

--
Brian Matlac
-----------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...nfo&userid=350
View this thread: http://www.excelforum.com/showthread.php?threadid=55557

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Formulas don't calculate

Calculate All will lead to forced calculation of all open workbooks, but it
may be not reasonably. Try the following:


Application.Calculation = xlCalculationManual
For Each rabsheet In .Worksheets
rabsheet.Activate
rabsheet.UsedRange.Calculate
Next
Application.Calculation = xlCalculationAutomatic



"xLBaron" wrote:

Hi Brian -

Try adding this to the end of your macro:

application.CalculateFull

If this doesn't work then try:

Add this macro to your workbook

Sub CalculateFull()
application.CalculateFull
End Sub

then add this to the end of each of your macros

application.Run "' Workbook Name .xls'!CalculateFull"

Good luck


Reply
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
Sum formulas won't calculate on fill-down abkate Excel Discussion (Misc queries) 3 January 30th 06 12:53 AM
How do you calculate persentages and formulas EXCEL Excel Discussion (Misc queries) 1 August 8th 05 07:11 PM
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 10:09 PM.

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"