View Single Post
 
Old 11-21-2017, 03:02 PM
GiHem GiHem is offline Windows 10 Office 2010 64bit
Novice
 
Join Date: Nov 2017
Posts: 10
GiHem is on a distinguished road
Default

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
Reply With Quote