Table Index or Number?

I

Iragalam

I am trying to write a macro to merge cells of a table and shade the
background gray. Is there an easy way to select a certain table within a
document?

I want to be able to select a few different tables, run some conditional
statements on the row contents, and finally merge cells / shade background
when needed.

Any help would be great...Thanks
-Paul
 
D

Doug Robbins - Word MVP

If you select the tables on which you want to operate and then insert
bookmarks, your code can make use of

ActiveDocument.Bookmarks("bookmarkname").Range.Tables(1)

to select the table upon which it is to operate.

--
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
 

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