TXT file conversion problem...?

K

Kenneth

Howdy,

I have some Word 2002 templates that were mailmerge docs
saved as dot files.

Their datasource files are TXT.

Now, for reasons that I can't seem to find, when the
templates open, a File Conversion dialog opens and it shows
the conversion file to be set to Japanese Shift-TIS.

If I manually change that to Windows (Default), the TXT file
appears as it should.

Despite lots of assistance, I am unable to find a way to
change that setting permanently.

Is there code that I could attach to these DOT files to tell
them to use the Windows (Default) conversion?

If so, what would it be?

Sincere thanks for any help on this,
 
K

Kenneth

Howdy,

I have some Word 2002 templates that were mailmerge docs
saved as dot files.

Their datasource files are TXT.

Now, for reasons that I can't seem to find, when the
templates open, a File Conversion dialog opens and it shows
the conversion file to be set to Japanese Shift-TIS.

If I manually change that to Windows (Default), the TXT file
appears as it should.

Despite lots of assistance, I am unable to find a way to
change that setting permanently.

Is there code that I could attach to these DOT files to tell
them to use the Windows (Default) conversion?

If so, what would it be?

Sincere thanks for any help on this,

Hello again,

I found a line of VBA code on the MS site that may be
useful...

It would apparently tell Word to use a particular conversion
file to open a TXT file:

Format:=wdOpenFormatText, Encoding:=msoEncodingUSASCII

My need is slightly different, but would seem to be related.

I am not (directly) opening the TXT file.

Instead, I want it to be converted in a particular way as it
is used as a datasource for a mailmerge.

Would the same code approach work in that situation?

Thanks again,
 
G

Graham Mayor

How about

ActiveDocument.MailMerge.OpenDataSource name:= _
"D:\Path\DataFile.txt", ConfirmConversions:=False, _
ReadOnly:=False, LinkToSource:=True, AddToRecentFiles:=False


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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