ToddInLondon
New Member
- Joined
- Mar 30, 2015
- Messages
- 2
I have an Excel macro that opens workbooks in a folder/sub-folder structure and processes each worksheet via Copy/Paste SpecialValue and re-saves the workbook. As the macro processes hundreds/thousands of workbooks, there have been a few workbooks that have been "skipped". One reason for the skipping that I have found is if the workbook has an initial message box that pops up during the open active workbook command. For example, if the workbook has a circular reference msg OR bad links msg, etc., a message box with an "Update" or "OK" button is displayed.
For now, I would like to write to an error log, the name/path of the workbook, an error message id of the pop-up box, and a general message of the error. My initial goal to get thru all the workbooks in the folder structure and then go back and individually review the workbooks in the error log for potential issues.
Any idea how I can trap out the information regarding pop-up boxes when a workbook is initially opened.
Thanks, Todd
For now, I would like to write to an error log, the name/path of the workbook, an error message id of the pop-up box, and a general message of the error. My initial goal to get thru all the workbooks in the folder structure and then go back and individually review the workbooks in the error log for potential issues.
Any idea how I can trap out the information regarding pop-up boxes when a workbook is initially opened.
Thanks, Todd