atw: Re: VB command line to wipe macros fro a Word document

Hey Warren (L)

In that case, you might find the article on "How to save a Word 2000
document as an HTML file without getting loads of unnecessary xml/css
and other padding" from the Word MVP site to be of value.

See:
<http://www.word.mvps.org/faqs/General/SaveAsWebWithoutXML.htm>

HTH.

Michael

Michael E. Granat
T/as Write Ideas
Technical Communicator
Without Prejudice. E&OE.


-----Original Message-----
From: wlewington@xxxxxxxxx [mailto:wlewington@xxxxxxxxx]
Sent: 23 July 2004 14:53
To: austechwriter@xxxxxxxxxxxxx
Subject: atw: Re: VB command line to wipe macros fro a Word document

Okay more information.
The files concerned have macros embedded into them.
A filter is being written to convert HTML into the EBCDIC format.

The word files are going to be saved into HTML files and the problem bein=
g
experienced is that the macros appear to be causing crashes whenever the
save as HTML function is chosen.
The idea is to turn them off or preferably remove the macros from the wor=
d
files before the save as command is performed.
What I am thinking is to write (or better still, utilise existing) a bit =
of
code that does the process as follows:

Open the document.
Check for macros running or attached.
Purge the document of any macros.
Save as an HTML file.

Preferably performed by calling a batch file...

The HTML filter (and only looking at the <body> </body> part of an HTML
file) is being written to strip everything out except basic formatting,
keeping only:
Text.
Headings.
Basic tab paragraphs.
Numbered steps.
Lists.

This is a huge legacy system the documentation is being prepared for.
Literally hundreds (maybe 1000's) of files are to be converted, from all
over the world and created in most forms of language by a wide range of
people.

######################################################################
Attention:=20

The information in this electronic mail is privileged and
confidential, intended only for use of the individual or entity named.
If you are not the intended recipient, any dissemination, copying or
use of the information is strictly prohibited.  If you have received
this transmission in error, please delete it immediately from your
system and inform us via e-mail : ops@xxxxxxxxxxxxxx

This e-mail has been scanned and cleared by MailMarshal=20
######################################################################
**************************************************
To post a message to austechwriter, send the message to 
austechwriter@xxxxxxxxxxxxxx

To subscribe to austechwriter, send a message to 
austechwriter-request@xxxxxxxxxxxxx with "subscribe" in the Subject field.

To unsubscribe, send a message to austechwriter-request@xxxxxxxxxxxxx with 
"unsubscribe" in the Subject field.

To search the austechwriter archives, go to 
www.freelists.org/archives/austechwriter

To contact the list administrator, send a message to 
austechwriter-admins@xxxxxxxxxxxxx
**************************************************

Other related posts: