Hi everyone,
I try to use VBA to close an excel file without saving and without prompt.
I've tried many methods below (pasted below) but still cannot do it without the prompt. I figured it was probably because I am in TM1 Perspectives.
Can anyone please help me find a solution?
Thanks a lot,
I try to use VBA to close an excel file without saving and without prompt.
I've tried many methods below (pasted below) but still cannot do it without the prompt. I figured it was probably because I am in TM1 Perspectives.
Can anyone please help me find a solution?
Thanks a lot,
Rich (BB code):
'tried method 1:
Application.DisplayAlerts = False
ThisWorkbook.Saved = True
'tried method 2:
Application.DisplayAlerts = False
Activeworkbook.Close SaveChanges:=False
'tried method 3:
Application.DisplayAlerts = False
Activeworkbook.close False