Solved Excel Add-in or VBA   Save formatted text as plain text

Posted on 2012-09-21
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.
Question by:murbro
    LVL 83

    Accepted Solution

    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.

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    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

    Suggested Solutions

    Title # Comments Views Activity
    Determine Range to Select 5 26
    Excel Max 6 24
    Excel 2010 question 3 23
    rank minimum order 9 16
    Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
    This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
    The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
    This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

    760 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

    6 Experts available now in Live!

    Get 1:1 Help Now