I have a loop that goes through every xlxs & xlsm file in a SharePoint folder but every now and then it hangs while opening a random workbook. It can run fine most of the time but other times it hangs.
This is the command I use to open the file:
Workbooks.Open Filename:=strSharePointPath _
& strWorkbookName, _
ReadOnly:=True ' Open the Current Workbook as Read Only
Is there a way to detect when it hangs too long? If so, I need it to GoTo ReportWorkbookNotProcessed.
Thank you...
This is the command I use to open the file:
Workbooks.Open Filename:=strSharePointPath _
& strWorkbookName, _
ReadOnly:=True ' Open the Current Workbook as Read Only
Is there a way to detect when it hangs too long? If so, I need it to GoTo ReportWorkbookNotProcessed.
Thank you...