LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Excel VBA Iteration


On my spreadsheet i have a circular reference, i need this circular formula
however the message telling me i have one is confusing my users when they
open the spreadsheet.

I have figured out that turning on iteration fixes the error message, so i
wish to use VBA to turn on iteration when opening the workbook. Logically
this should work shouldn't it?

Private Sub Workbook_Open()
Application.Iteration = True
End Sub

but the error message still comes up and then it turns the iteration on. So
i thought maybe if i turned off auto calculation and then back on after i.e.

Private Sub Workbook_Open()
Application.Calculation = xlManual
Application.Iteration = True
Application.Calculation = xlAutomatic
End Sub

And again, the error message comes up and then it turns off the calc, turns
on the iteration and so on.....

I have tried this sub on each worksheet and in a module, it doesn't work.
Please can someone tell me how to make this work.

Thanks
 
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
How do I use Excel Solver (for an Iteration in a row) for several no.of times? Deepak[_2_] Excel Discussion (Misc queries) 0 December 9th 08 06:35 AM
Excel Iteration Program raj74 Excel Discussion (Misc queries) 7 July 30th 08 11:07 AM
Iteration problem (Excel 2002) Stefan Kasserra Excel Worksheet Functions 1 July 17th 06 11:38 PM
Help requested for Excel Iteration problem Sree Excel Discussion (Misc queries) 2 June 22nd 06 09:54 PM
Excel 97 - Application.Iteration is always FALSE? Umfriend Excel Programming 4 October 20th 04 08:49 AM


All times are GMT +1. The time now is 03:40 AM.

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

About Us

"It's about Microsoft Excel"