Retrieve the HTML Markup from an unsaved Word Document

K

Koen

Hi,

I want to write a VBA macro that extracts the HTML markup from a regular
word document (as a string i guess). The document cannot be saved as HTML
document first.

Anyone knows the solution?

Thanks
 
W

Word Heretic

G'day Koen <[email protected]>,

Copy contents to the clipboard, create a new document, paste contents,
save as html, read content.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Koen reckoned:
 
K

Koen

There is no other (cleaner) way of doing this?

Word Heretic said:
G'day Koen <[email protected]>,

Copy contents to the clipboard, create a new document, paste contents,
save as html, read content.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Koen reckoned:
 
W

Word Heretic

G'day Koen <[email protected]>,

Once saved as HTML you should be able to access the Scripts
collection. Until you force the generation of it, it doesn't exist.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Koen reckoned:
 

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