D
DaddyUnit
Application.Documents.Open
"http://www.gsa.gov/graphics/staffoffices/GSACFO_5yr_Plan_FY03_07.doc"
ActiveDocument.SaveAs "C:\Users\Unhappy Microsoft
Customer\Documents" & ActiveDocument.Name, wdFormatDocument
When I go back and browse the "Documents" folder I see my file but it is
listed as a "DOC File" instead of a "Microsoft Office Word Document" and if I
double-click on it it opens in notepad and is infected with billions of
unhelpful random characters.
If, while I'm running my code, I stop execution immediately before the last
line, switch to the Active Document and manually save the document, it saves
just fine.
How can I programmatically save a word document so that it is later
recognized as a word document?
"http://www.gsa.gov/graphics/staffoffices/GSACFO_5yr_Plan_FY03_07.doc"
ActiveDocument.SaveAs "C:\Users\Unhappy Microsoft
Customer\Documents" & ActiveDocument.Name, wdFormatDocument
When I go back and browse the "Documents" folder I see my file but it is
listed as a "DOC File" instead of a "Microsoft Office Word Document" and if I
double-click on it it opens in notepad and is infected with billions of
unhelpful random characters.
If, while I'm running my code, I stop execution immediately before the last
line, switch to the Active Document and manually save the document, it saves
just fine.
How can I programmatically save a word document so that it is later
recognized as a word document?