I have some code which opens a "Read only" Word document, inserts some Access data, prints the document....
Now I need to close the document Without saving.
Please can anyone tell me the syntax for this so that it does not bring up the "save as" dialog.
The line
.ActiveDocument.close does not work and when the user selects "cancel" via the SaveAs dialog it errors out.
If IT ain’t working Binnit and Reboot
Now I need to close the document Without saving.
Code:
With objWord
.Visible = False
.ActiveDocument.close
End With
Please can anyone tell me the syntax for this so that it does not bring up the "save as" dialog.
The line
.ActiveDocument.close does not work and when the user selects "cancel" via the SaveAs dialog it errors out.
If IT ain’t working Binnit and Reboot