Jean-Guy
Fri Sep 01 12:39:07 CDT 2006
Cindy M. was telling us:
Cindy M. nous racontait que :
> Hi Jean-Guy,
>
>>> How do I know if the user REALLY just selected one word?
>>
>> With Selection.Range
>> If .Start = .End Then
>> MsgBox "Nothing is currently selected"
>> Else
>> MsgBox "Something is actually selected"
>> End If
>> End With
>>
> How about Selection.Type?
> If Selection.Type = wdSelectionIP Then
Yes!
I was actually looking for that as I remembered that there was a property
that could check if the selection was an insertion point or not. I thought
it was something like "InsertionPoint"... Obviously I did not find it, so I
came up with a hack instead!
Thanks!
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site:
http://www.word.mvps.org