Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
MS Word File - SavingAS
Hello All,
One of the few things I can't find in Tamar's and Della's book is how to:
.ActiveDocument.SaveAs "c:\myDocu~1\MyLabels.doc", ReadOnlyRecommended:=False
I can save the .dot as a .doc OK but can't clear the "ReadOnly Recommended".
There is probably a numeric parm like (0) to "wdsavewithoutchanges" but I can't find reference to it anywhere - even in the VBA object browser. I thought it might be: "ReadOnlyRecommended=False" but that didn't work. Anyone worked with and resolved this. TIA.
Regards,
Paige
With oWord
.Documents.Open "c:\My Documents\MyLabels.dot"
.ActiveDocument.SaveAs "c:\myDocu~1\MyLabels.doc", ReadOnlyRecommended:=False
.ActiveDocument.Close(0)
.Documents.Open ("c:\myDocu~1\MyLabels.doc")
EndWith
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement