How to select the last table in the active document?

T

Tim

Hey Everybody,

How would I go about selecting the last table in the active document (this
table could span multiple pages).

Thank you,

Tim
 
E

Edward Thrashcort

Sub SelectLastTable()
With ActiveDocument
.Tables(.Tables.Count).Select
End With
End Sub


Eddie
 
T

Tim

Thanks a lot Eddie. I was trying to do a similar thing, but I kept getting
an invalid property (or something like that) error when I used
ActiveDocument.Tables.Count. My computer must have been having a moment.

Thanks,

Tim
 

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