Solved

Saving a .txt file as .rtf ...

Posted on 2006-06-20
3
262 Views
Last Modified: 2010-04-30
Guys,

For reasons I won't bore you with, my little VB app needs to create 3 versions of a compiled 'string' based file

1. a .txt version
2. a HTML version
3. a .rtf version

No problems with 1 & 2 ... but the .rtf version is causing me a problem.

I'm compiling my string-based document and saving it using FSO ... cheekily just changing the extension ... but the .rft 'knows' it is not true .rft ... that is having a knock-on effect for what I am actually using this for (pre-designing Autosigs. in Outlook, if you are interested)

Anyone know how I can save a .txt file as 'real' .rft ??

Thanks,

S.S.
0
Comment
Question by:SpencerSteel
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
rettiseert earned 500 total points
ID: 16943805
One option is setting a hidden rich text box in your form, copying your text there and then call richtextbox1.SaveFile "filename.rtf",0
0
 

Author Comment

by:SpencerSteel
ID: 16943842
This sounds wicked - but I actually wasn't being totally truthful in that I'm using an Access/VBA application and SaveFile isn't available ... am looking for alternatives !

:(

S.S.
0
 

Author Comment

by:SpencerSteel
ID: 16944093
I'm going to move this to Access Q's ... sorry !

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access Object Property from VBA Module in Excel 2010 2 31
Hide vba in gp 7 94
Recommendation vb6 to vb.net or others 14 142
IF ELSE Statement in Excel Macro VBA 16 62
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question