Y
ykchanaed
With Selection
..Moveend Unit:=wdWord, Count:=1
..movestart Unit:=wdWord, Count:=-1
..InsertBefore Text:="("
..InsertAfter Text:=")"
End With
I wrote the above to insert brackets to the word where the cursor locates.
But it included the space behind the word.
any way to improve it?
..Moveend Unit:=wdWord, Count:=1
..movestart Unit:=wdWord, Count:=-1
..InsertBefore Text:="("
..InsertAfter Text:=")"
End With
I wrote the above to insert brackets to the word where the cursor locates.
But it included the space behind the word.
any way to improve it?