TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:RE: Flushing out unused styles in Word 97 From:"Jonathan West" <jwest -at- mvps -dot- org> To:"TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com> Date:Thu, 30 May 2002 16:31:28 +0100
>
>
> Is there any way, beyond the obvious, to flush out unwanted/ unused styles
> from a template created using Word 97. Any advice would be greatly
> appreciated.
You would need to write a VBA macro that goes through all the styles in the
template. For each one, you would need to check if it was on your approved
list. If not, then delete it. If the style is one of the built-in styles,
deleting will with throw an exception, which you will either have to handle
or ignore using on Error Resume Next. Built-in styles can't be deleted.
Once you have the macro, then you can run it also on individual documents as
well as your template. In the latter case, you would probably wanty to check
if it was in use before deleting it.
Regards
Jonathan West
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check out RoboDemo for tutorials! It makes creating full-motion software
demonstrations and other onscreen support materials easy and intuitive.
Need RoboHelp? Save $100 on RoboHelp Office in May with our mail-in rebate.
Go to http://www.ehelp.com/techwr-l
Free copy of ARTS PDF Tools when you register for the PDF
Conference by May 15. Leading-Edge Practices for Enterprise
& Government, June 3-5, Bethesda,MD. www.PDFConference.com
---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit http://www.raycomm.com/techwhirl/ for more resources and info.