Home » Questions » Computers [ Ask a new question ]

Swap words next to each other in Word?

Swap words next to each other in Word?

If I have a Word-document and want 2 words next to each other to change places with oneanother is that possible with some function or logic in Word?

Asked by: Guest | Views: 323
Total answers/comments: 3
Guest [Entry]

"If the words are next to each other,

Turn on ""Use Wildcards""

Find: (1stword) (2ndword)

Replace: \2 \1"
Guest [Entry]

"If you want some VBA to swap two adjacent words around, this will do it:

Sub SwapWords()
'Clear Selection
Selection.SetRange Start:=Selection.Start, End:=Selection.Start
'Expand Selection to word under cursor
Selection.Expand
'Cut word
Selection.Cut
'Move one word right
Selection.MoveRight Unit:=wdWord
'Paste word
Selection.Paste
End Sub"
Guest [Entry]

"Highlight the word with left click.
Hold down right click and move the cursor where you want the word to go.
Let go."