How do I use a macro to open a doc as text, without conversion

G

Guest

I need to open a document as txt, via a macro (Wd2003). I was helped earlier
this week to find the confirm conversions option but with this set, the txt
option still needs to selected manually before the macro continues.

Here is the part of the macro which opens the document:

Documents.Open FileName:="""DM Schedule.htm""", ConfirmConversions:=False,
ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto,
XMLTransform:="", _
Encoding:=1252

With ConfirmConversions:= set to False, it opens as a word doc. If set to
True, itwaits for manual instruction to open as txt.

I figure there must be a way to preset the txt option.

Thanks for looking at this .... :)
 
G

Guest

Sorry folks ... I just found my own answer ... if anyone is interested, it
works if you change Format:=wdOpenFormatAuto to Format:=wdOpenFormatText
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top