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
 
Top