none
How to Insert HTML tags for plain Text in WORD document using WORD Macros RRS feed

  • General discussion

  • I want to create a macro for HTML tagging,

    I need the following steps are done by the macro in WORD

    Initial Step : Open a Word Document and Run my "HTML Tagging macro"

    Macro Step1: Browse to import a text file(anto12.txt) to WORD document

    Text File (anto12.txt) Content:

    PAGE 12345
    These lines are taken from the book of arts.
    written by Mr. Anto
    one of the very popular writer in the world

    Macro Step2: import the content of text file and inserting html tags

    <START>
    <TITLE>ANTO12</TITLE>
    <BODY>
    <P>PAGE 12345</P>
    <P>These lines are taken from the book of arts.<br>written by Mr. Anto<br>one of the very popular writer in the world<br></P>
    </BODY>
    <END>


    Macro Step3: Saving the active document as a HTML file with the same file name of TEXT file (anto12.html)

    Thanks in advance...

    Wednesday, July 17, 2013 8:54 AM

All replies

  • Your post looks to me like a work order RFQ and not a request for help with a specific coding problem. I would like to ask that can you write simple VBA by yourself? If yes, you can firstly try to write something on your own. Overall this is a place to ask for help not for ready-to-work solutions.

    Monday, July 22, 2013 7:54 AM