>As I RTM, I am looking for a table property that will tell me what table I am in. I have bookmarked a table, found that table, and the cursor is now in a cell in the table.
>
>I now need to populate the cells in the table, but the help shows the syntax is something like
blahblahblah.Tables(1).blahblahblah. Is there some property that will tell me I am in table 1? I do not want to code Tables(1), I want to code Tables(lnTableNumber). I can find this nowhere in the vbawrd9.chm help file. TIA.
You can try
#DEFINE wdWithinTable 12
IF oRange.Information(wdWithinTable)
oRange.Font.Color = MyRGBColor
ENDIF
I didn't do an exhaustive search, but I didn't see a quick way to return which table you're in. I'll see if I can find anything else out tomorrow.
- della