Code: Select all
Selection.HomeKey Unit:=wdLine
Selection.Extend
Selection.MoveRight Unit:=wdWord
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Thanks,
Ken
Code: Select all
Selection.HomeKey Unit:=wdLine
Selection.Extend
Selection.MoveRight Unit:=wdWord
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Code: Select all
Selection.HomeKey Unit:=wdLine
Selection.Extend
Do Until LCase(Trim(Selection.Words(Selection.Words.Count))) = "in"
Selection.MoveRight Unit:=wdWord
Loop
Selection.MoveLeft Unit:=wdWord
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Code: Select all
Selection.HomeKey Unit:=wdLine
Selection.Extend
Selection.Find.Execute FindText:=" in ", Forward:=True, Wrap:=wdFindStop
Selection.MoveLeft Unit:=wdCharacter, Count:=4
Code: Select all
Selection.HomeKey Unit:=wdLine
Selection.Find.Execute FindText:=" in ", Forward:=True, Wrap:=wdFindStop
If Selection.Find.Found Then
Selection.HomeKey Unit:=wdLine, Extend:=wdExtend
End If