I have a macro that saves a file as a new name after form is filled out. The location that it is saved to is a SharePoint location and the SaveAs sometimes fails due to network connection issues. I would like for the code to wait a couple of seconds and retry the SaveAs step, maybe 5 times before erroring out if it still isn't successful after those 5 tries. I have been trying to test the error loop sections with this code to force it to error, but it seems to only run twice and then throws the 1004 error:
If this does what I think it should do, it will loop for 10 seconds and then pop-up message box with "did not save". But as I said above it only runs for 4 seconds and then raises the 1004 error box.
Any help is greatly appreciated.
Bookmarks