In MS Word VBA, I require a function which moves the end of the selection until a defined string (not merely one out of a set of characters, as does MoveEndUntil).
Say, for example, I have following text:
/foo <lots of nonsense in between, such as /x> /bar
If I run
,the end stops at /x (at /, to be precise). I want to select all the text between /foo and /bar and process it further. I've seen a few good posts in this forum on this matter, but afaik no conclusion on how to master this. Any help appreciated.
Say, for example, I have following text:
/foo <lots of nonsense in between, such as /x> /bar
If I run
Code:
selection.moveenduntil CSet:="/bar", Direction:=wdForward
,the end stops at /x (at /, to be precise). I want to select all the text between /foo and /bar and process it further. I've seen a few good posts in this forum on this matter, but afaik no conclusion on how to master this. Any help appreciated.