Word VBA - Selecting multiple ranges

Word VBA. Is it possible to Select multiple ranges?

I have a loop that, on each pass, refers to a different range. I want to Select these ranges on each pass (so that I can Delete them all in one hit).

Thanks
hindersalivaAsked:
Who is Participating?
 
GrahamSkanRetiredCommented:
You can define multiple ranges in VBA with multiple instances of a Range object, but only one can be selected at a time.

It would be possible to use the Highlight property to show where they are and to use Find and Replace or a separate VBA macro to delete them.
0
 
Rgonzo1971Commented:
Hi,

AFAIK it's not possible

Regards
0
 
hindersalivaAuthor Commented:
Ok. Thanks both of you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.