Private Sub Workbook_Open()

Ryan - S

New Member
Joined
Apr 16, 2013
Messages
2
Hi Everyone,

I found a few posts online and I'm hoping you can help me solve this issue.

During the Workbook_Open() Routine, I have the following code:

With Application
.Iteration = True
.MaxIterations = 1000 '<-- or whatever the maximum allowable # you want
.MaxChange = 0.001 '<-- modify as necessary, or remove if desired
End With

During the opening of the workbook, the debugging always errors on the first line. In this case, it would be .Iteration.
My Excel Document is 2007.

Thank you for any help you can provide.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Would you want to share with us what the error message says? I cannot produce an error with the same code.
 
Upvote 0
Sorry, I have tried three or four scenarios and cannot duplicate the error. Try deleting the code and then re-enter it. Be sure it is in the ThisWorkbook code module when using the Private Sub Workbook_Open() procedure name.
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,836
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top