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

  • Thread starter Thread starter Guest
  • Start date Start date
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 .... :)
 
Sorry folks ... I just found my own answer ... if anyone is interested, it
works if you change Format:=wdOpenFormatAuto to Format:=wdOpenFormatText
 
Back
Top