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:Finding character styles in Word with VBA? From:Geoff Hart <ghart -at- videotron -dot- ca> To:TECHWR-L <techwr-l -at- lists -dot- techwr-l -dot- com>, "Partridge, Robert" <Robert -dot- Partridge -at- au -dot- unisys -dot- com> Date:Wed, 22 Mar 2006 09:19:50 -0500
Robert Partridge wondered: <<I'm trying to find both para and char
formats and replace them with other formats in Word XP... Finding and
replacing para formats is easy with this code <snipped>... What I can't
seem to do is find character styles using the same method.>>
I'm not a VBA programmer by any means, but often the simplest solution
to finding out how Word would do something in VBA is to record a macro
that does what you want to accomplish. Then examine the VBA code that
Word generated to create the macro. In this case, just record the steps
of replacing any character style with any other character style, then
copy the resulting code into your own macro and make the necessary
changes.
WebWorks ePublisher Pro for Word features support for every major Help
format plus PDF, HTML and more. Flexible, precise, and efficient content
delivery. Try it today!. http://www.webworks.com/techwr-l
Doc-To-Help includes a one-click RoboHelp project converter. It's that easy. Watch the demo at http://www.componentone.com/TECHWRL/DocToHelp2005