After a new file has been open for 5 minutes, I want to ask the user if they want to save the file.
I found the code to ask them if they want to save (below), I just do not know how to modify to
- Have the macro run on every new workbook
- Have the prompt display after 5 minutes.
Code
If Not ThisWorkbook.Saved Then
If MsgBox("Do you want to save the file before continuing?",vbYesNo,"Save?") = vbYes Then
ThisWorkbook.Save
End If
End If