I have found out how to know if a portion of text is selected.
Code:
Select Case Selection.Type
Case wdSelectionNormal
MsgBox "there is a selection"
Case Else
MsgBox "there is no selection"
End Select
But I still don't know how to apply a code to this selection and not to the whole document.
Could a member of this forum help me.
Thank you in advance.
GiHem