Saving Master and SubDocuments as HTML In Word 2002 
Author Message
 Saving Master and SubDocuments as HTML In Word 2002

I want to create a VBA macro that saves a modified master document and all
its subdocuments in HTML format.

In Word 2002 (Office XP), when you attempt to save a master document with
sub-documents expanded in HTML format, where all parts are originally in
.doc format, you get the following dialog:

"Subdocument xxx will be saved in a different format. Word can save over the
original file, or save to a different file name. Would you like to save to a
new file?"
[Yes] [Yes to All] [No] [No to All]

If you select "Yes to All", all of the subdocuments will be saved as HTML,
much the same as Word 2000 does by default. If you select "No to All", the
subdocuments are saved overwriting the original .docs.

Is there anyway in VBA to automatically save all subdocuments in HTML format
without this dialog appearing? Is there a Document or Application property
that can be set, or is there any way this dialog can be controlled? If the
dialog is suppressed via setting DisplayAlerts = wdDisplayNone, it defaults
to "No to All", overwriting the original docs.

The other possible solution is to save each subdocument separately in the
VBA macro, and then to save the master document. Is this the only solution?

Thank you.

Jack Dignan
Design Science, Inc.



Sat, 22 Nov 2003 09:43:46 GMT  
 Saving Master and SubDocuments as HTML In Word 2002
The consensus among those offering advice on these newsgroups is that using
the Master Document feature is a sure way to destroy your document. It can
destroy parts of your document that you are not even working on! I think
John McGhie said it succinctly when he said that there are two kinds of
Master Documents: Those that are corrupt and those that will be corrupt
soon. See http://www.addbalance.com/word/masterdocuments.htm for information
on the Master Document feature and workarounds. See
http://www.mvps.org/word/FAQs/General/WhyMasterDocsCorrupt.htm for more
information on what goes wrong, and
http://www.mvps.org/word/FAQs/General/RecoverMasterDocs.htm for ideas on how
to salvage what you can.

Hope this helps.
 --------- --------- --------- --------- --------- ---------
Charles Kenyon (Balance Check) from the shores of that
 inland sea known as Lake Michigan.

Word New User FAQ & Web Directory:
http://www.addbalance.com/word

Microsoft Word Legal Users' Guide
http://www.addbalance.com/usersguide


Quote:
> I want to create a VBA macro that saves a modified master document and all
> its subdocuments in HTML format.

> In Word 2002 (Office XP), when you attempt to save a master document with
> sub-documents expanded in HTML format, where all parts are originally in
> .doc format, you get the following dialog:

> "Subdocument xxx will be saved in a different format. Word can save over
the
> original file, or save to a different file name. Would you like to save to
a
> new file?"
> [Yes] [Yes to All] [No] [No to All]

> If you select "Yes to All", all of the subdocuments will be saved as HTML,
> much the same as Word 2000 does by default. If you select "No to All", the
> subdocuments are saved overwriting the original .docs.

> Is there anyway in VBA to automatically save all subdocuments in HTML
format
> without this dialog appearing? Is there a Document or Application property
> that can be set, or is there any way this dialog can be controlled? If the
> dialog is suppressed via setting DisplayAlerts = wdDisplayNone, it
defaults
> to "No to All", overwriting the original docs.

> The other possible solution is to save each subdocument separately in the
> VBA macro, and then to save the master document. Is this the only
solution?

> Thank you.

> Jack Dignan
> Design Science, Inc.



Mon, 24 Nov 2003 19:02:34 GMT  
 Saving Master and SubDocuments as HTML In Word 2002
Hi Jack,

Quote:
> Is there anyway in VBA to automatically save all subdocuments in HTML format
> without this dialog appearing?

When I've had to convert Master/Sub to HTML for a customer, what I ended up
doing was saving the master document as a "new file" (so as to not affect the
original), then "delete" all the master documents (in VBA, this turns them
into part of the main file), then convert the entire thing to HTML.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.mvps.org/word
http://go.compuserve.com/MSOfficeForum

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)



Wed, 26 Nov 2003 00:47:00 GMT  
 Saving Master and SubDocuments as HTML In Word 2002
Do you mean that you opened the master document, expanded the subdocuments,
then clicked on "Remove Subdocument" for each subdocument? I see how that
would create one big document which you could convert to HTML. However, it's
nice to have each subdocument be its own HTML file, especially for large
subdocuments.

Word2000 would save each subdocument as HTML automatically. What I am doing
in VBA at present is to save each subdocument as HTML separately first, then
save the master document as HTML. This gives me the same result in Word 2002
as in 2000. Too bad I have to go through all that work, though.

Jack Dignan
Design Science, Inc.
jackdNOSPAMdessci.com



Quote:

> When I've had to convert Master/Sub to HTML for a customer, what I
> ended up
> doing was saving the master document as a "new file" (so as to not affect
the
> original), then "delete" all the master documents (in VBA, this turns them
> into part of the main file), then convert the entire thing to HTML.



Sun, 07 Dec 2003 12:06:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Saving Master And Sub-Documents As HTML in Word 2002

2. Saving Master Documents As HTML in Word 2002

3. Word 2002: How to save a file in Word 97 format in Word 2002

4. Word 2002 Save as filtered HTML

5. HTML/XML/Word 2002

6. Converting from HTML with Controls to Word 2002

7. How to Spell Check using Word 2002 / XP in HTML

8. Word 2002 - Save Template

9. Word 2002-Saving Normal Template

10. Access 2002 Word 2002 Automation

11. MailEnvelope property in Excel 2002 and Word 2002

12. spped problems with MS Access 2002 as client, Word 2002 as server

 

 
Powered by phpBB® Forum Software