I have a macro in a book that opens up my separate "vessel book", runs a copy and paste type macro, saves, and then closes the book.
Everything works apart from when it comes to close, the book will prompt the pop-up "would you like to save, yes no etc", even though the macro has save written into it?
Therefore it doesn't actually close - this is really annoying as I would like to schedule it to happen everyday, and if it doesn't close then it won't be able to.
Apparently it is not possible to turn this prompt window off so any help would be great.
Please find my formula below.
Sub AllFiles()
Application.Run "'G:\Research\Analysts\Elliot Frost\Barge_Tracker_Master.xlsm'!HistoricalData"
Workbooks("Barge_Tracker_Master.xlsm").Close savechanges:=True
End Sub
'=============================================================
Sub Scheduler()
'-- RUNS SUB(S) (OR FUNCTIONS) AT TIME SCHEDULED.
Application.OnTime TimeValue("11:28:00"), "AllFiles"
End Sub