Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How do I use a macro to open a doc as text, without conversion
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 .... |
#2
|
|||
|
|||
Sorry folks ... I just found my own answer ... if anyone is interested, it
works if you change Format:=wdOpenFormatAuto to Format:=wdOpenFormatText "JP" wrote: 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 .... |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Possible bug when recording a Word Macro | Microsoft Word Help | |||
How do I get rid of the same text that appears everytime I open a. | Microsoft Word Help | |||
Outline | Page Layout | |||
Text Recovery and Open & Repair in WD 2003? | Microsoft Word Help | |||
2000 to 2002 macro and "Could not open macro storage" | Mailmerge |