Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
For i = 0 to Forms.Count - 1
Forms(i).Close
Next i
[code]
Instead, do this:
[code]
For i = 0 to Forms.Count - 1
Forms(0).Close ' Note difference
Next i
[code]
If you close with an index, by the time you've closed just over half of them, the collection will have re-indexed itself and you'll the error you described.
Chip H.
If you want to get the best response to a question, please check out FAQ222-2244 first