Syntax for selecting multiple rows of a table

A

Alan

I cannot find nor figure out the syntax for selecting mulitple
rows of a table in Word.

I tried "ActiveDocument.Tables(1).Rows(1:3).Select", but that
syntax does not work for designating multiple rows.

Thanks, Alan
 
D

Doug Robbins - Word MVP

Dim myrange As Range
With ActiveDocument.Tables(1)
Set myrange = .rows(1).Range
myrange.End = .rows(3).Range.End
End With
myrange.Select

However, depending upon what you are doing, you may not need to actually
select the rows.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
D

Doug Robbins - Word MVP

Then no need to select them.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top