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.
 

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

JLGWhiz

Well-known Member
Joined
Feb 7, 2012
Messages
12,979
Office Version
  1. 2013
Platform
  1. Windows
Would you want to share with us what the error message says? I cannot produce an error with the same code.
 

JLGWhiz

Well-known Member
Joined
Feb 7, 2012
Messages
12,979
Office Version
  1. 2013
Platform
  1. Windows
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,082
Messages
5,622,596
Members
415,910
Latest member
ariverr

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
Top