Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2007

Tip: Looking for answers? Try searching our database.

How to select the last table in the active document?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim - 25 Jul 2007 18:42 GMT
Hey Everybody,

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

Thank you,

Tim
Edward Thrashcort - 25 Jul 2007 19:23 GMT
Sub SelectLastTable()
 With ActiveDocument
   .Tables(.Tables.Count).Select
 End With
End Sub

Eddie

> *From:* Tim<Tim@discussions.microsoft.com>
> *Date:* Wed, 25 Jul 2007 10:42:03 -0700
[quoted text clipped - 7 lines]
>
> Tim
Tim - 26 Jul 2007 12:28 GMT
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

> Sub SelectLastTable()
>   With ActiveDocument
[quoted text clipped - 15 lines]
> >
> > Tim
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.