View Single Post
 
Old 01-06-2016, 09:25 PM
PRA007's Avatar
PRA007 PRA007 is offline Windows 7 64bit Office 2010 32bit
Competent Performer
 
Join Date: Dec 2014
Location: Ahmedabad, Gujrat, India
Posts: 145
PRA007 is on a distinguished road
Default How to put HTML in word clipboard for pasting it as formatted Text

Since, I got suggestion for my this post, https://www.msofficeforums.com/word-...data-word.html, I was able to extract web data from word as HTML or as palin text. I searched, but I think there is no method available for Microsoft word user to insert formatted text from HTML especially when the html contains images.

While searching I found out that windows clipboard should contains following format to be pasted as formatted text.

Code:
Version:0.9
    StartHTML:71
    EndHTML:170
    StartFragment:140
    EndFragment:160
    StartSelection:140
    EndSelection:160
    <!DOCTYPE>
    <HTML>
    <HEAD>
    <TITLE> The HTML Clipboard</TITLE>
    <BASE HREF="http://sample/specs">
    </HEAD>
    <BODY>
    <UL>
    <!--StartFragment -->
    <LI> The Fragment </LI>
    <!--EndFragment -->
    </UL>
    </BODY>
    </HTML>
On MSDN, https://support.microsoft.com/en-us/kb/274326, there is method to put html in clipboard using visual basic, but it is very difficult to be understood by word-vba user(beginner).

There is need for word users to be able to paste HTML string as formatted text.
Reply With Quote