I have a code that will open reports given that they are received in Outlook same day as model runs. This works fine.
I face a problem when some of the reports are not received, but the code assumes all are received to close the sheet.
How can I re-write code below, to only close the reports that have been opened?
Tx
Workbooks("VLCC Form BRS.xlsx").Close SaveChanges:=False
Workbooks("VLCC Form Clarkson.xlsx").Close SaveChanges:=False
Workbooks("VLCC Form Galbraiths.xlsx").Close SaveChanges:=False
Workbooks("VLCC Form Gibsons.xlsx").Close
Workbooks("Report VLCC.xlsx").SaveAs ("https://X)
Workbooks("Report VLCC - " & Format(Now(), "DD.MM.YY") & ".xlsx").Save
Workbooks("Report VLCC - " & Format(Now(), "DD.MM.YY") & ".xlsx").Close