Highlighting Nuances

Subject: Highlighting Nuances
From: "Steve Hudson" <steve -at- wright -dot- com -dot- au>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Mon, 17 Dec 2001 14:25:45 +1100

Further to my previous posting regarding some results I found whilst
building the Editioning dialog allowing multiple editions to be built from a
single document using highlighting to mark the texts, I have some
refinements of knowledge.

1) Paragraph marks are capable of holding a highlight property

2) Word auto-trims your ranges no matter what autocorrect or other settings
you have set or cleared, making it impossible mark some spaces or paragraph
marks without a lot of silliness.

3) The simplest way to defeat 2 is to use assign a shortcut to a simple
macro that reads

Public Sub Stamp()
Selection.Range.HighlightColorIndex = Options.DefaultHighlightColorIndex
Selection.Collapse wdCollapseEnd
End Sub

4) Even after the highlight has been correctly applied, Word does not
display the highlight under certain conditions. Some of these conditions
are:
* if its a para mark
* if it is a space starting the highlight range that has been orphaned onto
its own line.

5) To check whether a highlight is applied, in the immediate window of the
VBE type

? Selection.range.highlightcolorindex

If the answer is not 0, the range has a highlight. To check which color, you
need to use the object browser on the wdcolorindex definitions.


Steve Hudson , HDK List MVP
Principal Technical Writer
Wright Technologies Pty Ltd (Aus)
EyeSpring - the future of graphics has been created.





^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Be a published author! iUniverse gives you: a high-quality paperback, a
custom cover design, and distribution to 25,000 retailers. And it's
affordable. Join our almost 10,000 published authors today.
http://www.iuniverse.com/media/techwr

Your monthly sponsorship message here reaches more than
5000 technical writers, providing 2,500,000+ monthly impressions.
Contact Eric (ejray -at- raycomm -dot- com) for details and availability.

---
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.



Previous by Author: RE: shaded graphics and color depth
Next by Author: RE: need halftone plug-in for PSP
Previous by Thread: Re: Headhunders ad the recession
Next by Thread: USAGE- Wisdom Tooth


What this post helpful? Share it with friends and colleagues:


Sponsored Ads