Solved

Saving a .txt file as .rtf ...

Posted on 2006-06-20
3
252 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now