Paste as HTML into a cell

B

Bob

Hi,

I'm doing a macro that connects to a web site, reads one page, and save its
contents inside a cell of table.

Basically I'm doing the following;

Set objHTTP = CreateObject("MSXML2.XMLHTTP")
objHTTP.Open "GET", strURL, False
objHTTP.Send
Selection.Text = objHTTP.ResponseText

The problem is that Word doesn't recognize the text as html, so, I can see
the source of the page. I want to paste it as a HTML.

Another problem is that I'm using a table. So, I tryied to use
Selection.Paste, but it doesn't work.

TIA,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top