I need to be able to control when a document can and cannot be saved. I am having trouble with the save changes prompts that comes up when the document or application is closed. I have tried everything i can think of to override...
' ActiveDocument.ActiveWindow.Close SaveChanges:=False
' ActiveDocument.Saved = True
' Application.DisplayAlerts = False
' Application.QuitobjWord.Quit SaveChanges:=False
I have tried these in AutoClose, AutoExit and Document_Close Subs.
Does anyone have an idea for me. I still consider myself new to VBA, so there is probably some trick I am not aware of.
Thanks
' ActiveDocument.ActiveWindow.Close SaveChanges:=False
' ActiveDocument.Saved = True
' Application.DisplayAlerts = False
' Application.QuitobjWord.Quit SaveChanges:=False
I have tried these in AutoClose, AutoExit and Document_Close Subs.
Does anyone have an idea for me. I still consider myself new to VBA, so there is probably some trick I am not aware of.
Thanks