General information
Category:
COM/DCOM and OLE Automation
Not sure how to get around this particular permission problem. Here is something of a work-around of the top of my head.
1. open current document
2. select whole document
3. copy selection
4. Add new document
5. Paste whole selection into new document
6. SaveAs active document.
Code goes something like this: NOTE: Not tested so there may be errors!!!!
With oWord
.Open(D:\xfilename.doc,.f.,.t.)
.Selection.WholeStory
.Selection.Copy
oDocument.Add()
.Selection.Paste
.ActiveDocument.SaveAs(c:\Newfilename.rtf,100)
etc....
endwith
HTH
Paul.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only