Hi MTIA,
I don't know if you can select a part of a shape text. However, it's
possible to highlight it.
I've written a little macro for you to show how this works. The macro sets
the color of the first two characters to red, the 3rd to 8th to green, and
the 9th to 10th to blue. Hope this helps.
Best regards,
Markus
Public Sub ColorIt()
Dim myChars As Characters
Dim myShape As Shape
Dim index As Integer
Dim rowNumber
For index = 1 To ThisDocument.Pages(1).Shapes.Count
Set myShape = ThisDocument.Pages(1).Shapes(index)
Set myChars = myShape.Characters
myChars.Begin = 0
myChars.End = 2
myChars.CharProps(VisCellIndices.visCharacterColor) = 2
myChars.Begin = 2
myChars.End = 8
myChars.CharProps(VisCellIndices.visCharacterColor) = 3
myChars.Begin = 8
myChars.End = 10
myChars.CharProps(VisCellIndices.visCharacterColor) = 4
Next index
End Sub
Paul Herber said:
I'm trying to replicate part of the 'Find' functionality, but with
special features.
I've got the shape selected and I've done a doCmd(visCmdDRTextTool) to
get into edit mode.
Now, how do I just select and highlight part of the text, say from
character 3 to character 5 ?
MTIA.
http://www.sandrila.co.uk/