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 / March 2006

Tip: Looking for answers? Try searching our database.

Identify Tables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carim - 28 Mar 2006 12:38 GMT
Hi,

I am dealing with a document which contains 4 different types of
tables.
Since each type of table triggers a different set of actions, is there
a way to test tables with a unique identifier, which would categorize
them  ?
Thanks in advance for your comments

Cheers
Carim
Word Heretic - 28 Mar 2006 18:18 GMT
G'day "Carim" <carimfam@yahoo.com>,

best method is to always include table caption before the table and
read that. Failing that, bookmarks work ok. Eg, bookmarked with a
prefix of GL means General Ledger results.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice

Carim reckoned:

>Hi,
>
[quoted text clipped - 7 lines]
>Cheers
>Carim
Carim - 29 Mar 2006 07:32 GMT
Hi Steve,

Thanks for your input.
So far, my code loops through all the tables, extracts all cells and
copies nicely to Excel ...but I need to refine it with table
identifiers ...
Is there a simple way to programmatically create 4 types of table
captions or 4 types of bookmarks for something like 500 tables ?
Thanks for your help
Carim
Word Heretic - 31 Mar 2006 07:40 GMT
G'day "Carim" <carimfam@yahoo.com>,

Sorta

Dim NextVictim as Table
Dim Serialiser as Long

for each Nextvictim in activedocument.tables

that gets you looping through all tables

if nextvictim.someproperty = identifableResult then
 add my caption,append the serialiser
else
add another caption, append the serialiser
end if

serialiser = serialiser +1

next

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice

Carim reckoned:

>Hi Steve,
>
[quoted text clipped - 6 lines]
>Thanks for your help
>Carim
Carim - 31 Mar 2006 08:09 GMT
Hi Steve,

Thanks a lot ...
Followed your recommendation ... and fixed my problem ...
Thanks again

Cheers
Carim
 
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.