View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement,microsoft.public.word.formatting.longdocs
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Three almost identical manuals

There isn't any "feature" for swapping bits of document, but are lots of
ways to approach this. Some are more work up front, others are more work to
maintain as the document evolves, but none are really simple.

You certainly can use a VBA solution, although I'll suggest using bookmarks
instead of Open and Close markers because bookmarks surrounding visible text
don't have to be hidden. I'll also suggest applying style(s) to hide or
unhide rather than directly applying font formatting.

You could alternatively use a system of IF fields, with either literal text
or IncludeText fields that pull in bookmarked pieces of separate documents
that contain the conditional text. The IF fields can use the value of a
custom document property to determine which kind of manual you're printing;
change the property value and update the fields, and the manual is instantly
reconfigured.

I've probably omitted a half dozen workable schemes and variations.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Jose Valdes wrote:
I am writing three manuals that are almost identical. However, each
manual has some unique content. As a former user of Adobe FrameMaker,
my rash impulse was to use VBA to recreate the Condition Text feature
in MS Word. Here's how it works:



Info unique to manual A appears in these markup tags:
ManualAContentOpen and ManualAContentClose. Manuals B and C have
similar tags. If I want to print manual A, VBA scripts format B and C
content as hidden text (Format menu | Font | Hidden checkbox).
Content for A is not hidden, but VBA scripts hide markup tags.



I have already starting this work and feel competent enough to
complete it. I fear, however, that I might be giving into my dark
impulses to play with VBA instead of writing. ;-) I was hired to be a
writer of course.


Does feature exist already somewhere? Am I on the right track?