Last question about .txt files

D

Dave B

I'm copying some text from Word into .txt files using:

ActiveDocument.Range(Start:=intStart, End:=intEnd).Select
sTextContents = Selection.Text
Open sFilename For Output As #1
Print #1, sTextContents

When I open the .txt files in Notepad, some characters don't come through
(e.g. the TM character which stands for Trademark) and the hard returns show
up as solid black boxes. I got better results when I manually (ugh!) copied
text and pasted it into Notepad. Is there a better variable type to use
(instead of String) or a better way to do this? Thanks.
 
A

Andi Mayer

When I open the .txt files in Notepad, some characters don't come through

change the font in Notepad



If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW
 

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