PDA

View Full Version : [SOLVED:] Select words macro



vangog
05-09-2022, 09:30 AM
Hello,
can you help me to write simple macro to select text starting from current position of keyboard cursor to position of round bracket "(". The bracket should not be in the selection. Information for backward compatibility: I need this for Word XP.

macropod
05-09-2022, 03:17 PM
That's as simple as:

Sub Demo()
Selection.MoveEndUntil "(", wdForward
End Sub

vangog
05-10-2022, 05:43 AM
Thank you.