if file is open - try again, wait, try again
i have the below
Could anyone advise how to amend this so instead of exiting the sub![]()
If IsFileOpen("S:\TLC Report.xlsx") Then MsgBox "Relevant file in use - Please try again.", vbOKOnly + vbInformation, "" Exit Sub Else End If
it will
wait 5 seconds, try again
wait 5 seconds, try again
then after them 3 attemps, if its still open, to exit sub
thanks in advance
Bookmarks