Jonathan said:
OK, Selection.Start gives you the character position of the start of the
selection. Selection.Paragraphs is the collection of all paragraphs (or
parts thereof) within the selection.
If Selection.Paragraphs.Count is greater than 1, then you know you have a
selection which straddles 2 or more paragraphs.
Whether the start of the selection is at the start of a paragraph can be
tested by comparing the character position of the selection's start with the
character position of the start of the first paragraph selected. If they are
the same, the selection is at the start of the paragraph.
If the selection has more than one paragraph, and you want to process the
start of the second and subsequent selected paragraphs, then you can iterate
through the paragraphs collection. Each paragraph has a Range property which
you can think of as being like a Selection, but which marks the paragraph.
Thanks again, Jon.
Here are some problems I'm having implementing your suggestion
1. A Selection object doesn't seem to have a Start property
2. If I modfy the code to reference the TextRange derived from the
Selection, the Start property I can then access seems to be the
starting character of the selected text relative to all of the text in
the enclosing shape.
3. And Lastly, if I examine the Paragraphs of the selected text, they
don't include an entire bullet unless the selection actually included
the entire bullet. That is, if the selection (referring to my example
in the original post) were "for bullet A" then the only paragraph for
that selection would be the text "for bullet A" For instance, if I
write this:
Dim oPar As TextRange
For Each oPar In ActiveWindow.Selection.TextRange.Paragraphs
oPar.Text = oPar.Text
Next oPar
then at each iteration (only 1 in the case of my example) the paragraph
seems to consist of only the selected text form the bullet - not the
entire bullet from which the text was selected.
Sorry to be so dense on all this, but VBA Shapes, TextRanges,
Paragraphs, and Sentences have always given me fits!