Importing html code using HTMLProject object

H

Harry-Wishes

I am trying to extract the html code from a web table that's in a Word
document and store it in a variable string as shown below. The Word document
is saved as an html page in Word, not that this is of any significance.

Dim html_string as String
html_string = ActiveDocument.HTMLProject.HTMLProjectItems(1).Text

It seems to work well when I test the script on small html tables with few
rows and columns but not everything gets stored for large tables beyond a
certain number of rows and columns. The string gets truncated after a
certain point. I was wondering if there is a character size limit for the
string datatype? Most of my tables would range from 50 to 500 with at most 3
columms.

Thanks

Harry Wishes
 
H

Harry-Wishes

I must amend an earlier post with title "Importing html code using
HTMLProject object" because the problem is not what I originally thought.
Please go to the post with the title "Problem using Selection.TypeText". I
don't think the MS forum allows editing of posted messages.

Thanks

Harry_Wishes
 

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