Import a DOS-file to word

P

Per

I want to import a DOS-file into Word 2000 with norwegian characters using
VBA Documents.Open.

Can anyone tell how.
 
P

Per

Thank you for answering.

When I use:
Set pDoc = Documents.Open(FileName:="C:\.......txt",_
Format:=wdOpenFormatText)
the text is imported without our national characters.

When I use:
Set pDoc = Documents.Open(FileName:="C:\.......txt", _
Format:=FileConverters("[Format]").OpenFormat)
Format = "MS-DOS text with Layout"
I get this error: Kommandoen mislyktes (Failure)

This is maybe a special norwegian problem?


Jezebel skrev:
Dim pDoc as Word.Document
Set pDoc = Documents.Open(FileName:="C:\.......txt",
Format:=wdOpenFormatText)

If that doesn't work with your file format, use

Set pDoc = Documents.Open(FileName:="C:\.......txt", _
Format:=FileConverters("[Format]").OpenFormat)

Where [Format] is whatever you select in the 'Files of type' list to open
your file if you're doing it manually.



Per said:
I want to import a DOS-file into Word 2000 with norwegian characters using
VBA Documents.Open.

Can anyone tell how.
 

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