?
Solved

VB.net Excel Add-in or VBA   Save formatted text as plain text

Posted on 2012-09-21
2
Medium Priority
?
558 Views
Last Modified: 2012-09-22
I need to be able to take formatted text and convert it to some form of plain text, but then be able to take that plain text and convert it back to the formatted state. The plain text must therefore keep all the information about the formatting.

eg save the contents of a RichTextBox in a .txt file

or e.g. take the formatted text and save it as html
the html root seems the most promising at this stage.
0
Comment
Question by:Murray Brown
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 38421885
You would obviously need to either keep two copies of the text (formatted and plain) or use a format such as RTF where you can get the plain text out using .Text property instead of RTF.
0
 

Author Closing Comment

by:Murray Brown
ID: 38424706
Thanks
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

850 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