Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Retrieve the HTML Markup from an unsaved Word Document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Koen - 21 Mar 2006 11:21 GMT
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
Word Heretic - 21 Mar 2006 15:16 GMT
G'day Koen <Koen@discussions.microsoft.com>,

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:

>Hi,
>
[quoted text clipped - 5 lines]
>
>Thanks
Koen - 22 Mar 2006 09:43 GMT
There is no other (cleaner) way of doing this?

> G'day Koen <Koen@discussions.microsoft.com>,
>
[quoted text clipped - 17 lines]
> >
> >Thanks
Word Heretic - 22 Mar 2006 11:29 GMT
G'day Koen <Koen@discussions.microsoft.com>,

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:

>There is no other (cleaner) way of doing this?
>
[quoted text clipped - 19 lines]
>> >
>> >Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.