Converting RTF file into TXT file

A

Alogon

1. I would like to know how I can convert a file with RTF (Rith Text Format)
extension into a file with TXT extension using VBA code. I tried
"FileSystemObject.OpenAsTextFile" method but it did not work very well.

2. Is it possible to convert a file.RTF into file.XLS directly using VBA code?

Thanks In Advance.
 
D

Dave Peterson

MSWord can read .rtf files.

Maybe you could automate MSWord from your Excel macro.

When I have to do this kind of thing (and it's rare), I'll record a macro in
MSWord to get the syntax correct. Then I'll struggle (and google) to convert
that Word Macro to Excel.
 
A

Alogon

It is right, Mr.Dave.

In Excel Programming>Converting RTF... there is a Joel's code that match
what I wanted.

Thank you.
 

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