I have a macro that formats a document in a certain way, and then saves it, using ActiveDocument.Save
.
However, sometimes the document is not already saved, and in some cases I don't want to save it. Unfortunately, clicking 'Cancel' when the 'Save As' dialogue is displayed is causing a run-time error (4198) -
Command failed
Does anyone know how I can prevent this from happening? Thanks.