Strip macros from documents en masse?

S

SidneySM

I'm dealing with a few rather large and annoying macro virus
infestations, and am looking for a tool that I can throw a folder of
Word documents at and have any macros stripped from all of them. Does
anything like this exist? Thanks.
 
J

Jonathan West

SidneySM said:
I'm dealing with a few rather large and annoying macro virus
infestations, and am looking for a tool that I can throw a folder of
Word documents at and have any macros stripped from all of them. Does
anything like this exist? Thanks.

Not hard to write a macro that would do this. proceed as follows

Ensure that automacros are not running using this line of code

WordBasic.DisableAutoMacros 1

Then for each document, open it, save it as an RTF file, close it. Then open
the RTF file, and save it as an ordinary document again. Close it, then
delete the RTF file.

Once you have been through the batch, turn auto macros on again with this
line of code

WordBasic.DisableAutoMacros 0

The reason saving as RTF works is that the RTF file format saves all the
formatting, but doesn't include any VBA code.
 
S

Shawn Larson [MSFT]

Sidney,

I have some ideas but I need to know what version of Mac Word are you
working with. Actually, it¹s two ideas I¹m playing with, both involve
saving the documents out to different file format versions. Would that be a
viable option to you?

Shawn Larson
Mac Word Test
Microsoft MacBU
 
C

Clive Huggan

Hello Sidney,

You don't say whether you are operating a Mac (this is a newsgroup for users
of Word for the Mac) or a PC.

If PC: Although several people here use both PCs and Macs and may give you
an answer soon, it's likely that more people in a PC group have experienced
your specific problem. Here's where all the groups are listed:
http://www.microsoft.com/office/community/en-us/FlyoutOverview.mspx

If you are on a Mac, let us know (and the exact version of Word) and
somebody [else] will help you.

Cheers,

Clive Huggan
Canberra, Australia
(My time zone is 5-11 hours different from the Americas and Europe, so my
follow-on responses to those regions can be delayed)
====================================================
 

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