I replaced the standard FileSaveAs with my own Sub FileSaveAs. Basically it checks first if the document is based on a company template and, if so, fills some fields and then returns handling to Word. Originally with Dialogs(wdDialogFileSaveAs).Show. But due to a issue with Password to Open I changed that according to http://www.mvps.org/word/FAQs/MacrosVBA/Sa…ordsContent.htm%5B/url%5D to:
With Dialogs(wdDialogFileSaveAs)
If .Display = -1 Then
strFileName = .Name
.Update
.Name = strFileName
.Execute
End If
End With
(The other workaround in the same article doesn’t work.)
But this workaround appeared to cause another problem. Whe the user chooses to save as Textdocument in the Save as dialog, the document is saved as MyDoc.txt allright, but the content is still a Word document!
Replace the workaround with the original code and the conversion to TXT file does it’s job again.
So I seem to be stuck between the devil and the deep blue see. Unless someone has onother workaround that solves both problems…
Thanks
JanB