Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2008

Tip: Looking for answers? Try searching our database.

Force iterations in personal.xls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Don - 30 Jan 2008 22:41 GMT
All of my spreadsheets have circular references, usually quite a few.  I just
got some code to force Automatic Calculation every time excel is opened by
way of embedding the code in personal.xls.  I'd also like to force iterations
for all spreadsheets through some vb in my personal.xls too.  Ideally, I'd
like the code to set the checkmark for Iteration and also set values for
Maximum Iterations and Maximum Change.   Any assistance would be greatly
appreciated.  Thanks.
Gord Dibben - 30 Jan 2008 23:39 GMT
As simple as turning on the macro recorder.

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 1/30/2008 by Gord Dibben
'

'
   With Application
       .Iteration = True
       .MaxIterations = 999
       .MaxChange = 0.001
   End With
   ActiveWorkbook.PrecisionAsDisplayed = False
End Sub

In Personal.xls Thisworkbook module enter this event code to set the calculation
and iteration mode for the application.

Private Sub Workbook_Open()
With Application
      .Calculation = xlCalculationAutomatic
      .Iteration = True
      .MaxIterations = 999
      .MaxChange = 0.001
   End With
End Sub

Gord

>All of my spreadsheets have circular references, usually quite a few.  I just
>got some code to force Automatic Calculation every time excel is opened by
[quoted text clipped - 3 lines]
>Maximum Iterations and Maximum Change.   Any assistance would be greatly
>appreciated.  Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.