A
ABHale
In VBA, I am trying to save a document, then remove a section containing
company specific information, then save the document again in PDF for
distribution.
The code executes ActiveDocument.SaveAs (no problem);
I have tried two variations to preserve the original document:
ActiveDocument.Close SaveChanges:=wdSaveChanges, with the intent of
re-opening the document, results in Command Failure;
If remove the content, save the PDF (ActiveDocument.ExportAsFixedFormat,
ExportFormatPDF:=wdExportFormatPDF) (no problem) then close the document with
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges, results in Command
Failure; I need to preserve the content and inhibit the display of the Save
Changes message to the author.
Thank you in advance for your time and consideration.
company specific information, then save the document again in PDF for
distribution.
The code executes ActiveDocument.SaveAs (no problem);
I have tried two variations to preserve the original document:
ActiveDocument.Close SaveChanges:=wdSaveChanges, with the intent of
re-opening the document, results in Command Failure;
If remove the content, save the PDF (ActiveDocument.ExportAsFixedFormat,
ExportFormatPDF:=wdExportFormatPDF) (no problem) then close the document with
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges, results in Command
Failure; I need to preserve the content and inhibit the display of the Save
Changes message to the author.
Thank you in advance for your time and consideration.