Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Table Properties
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00460713
Message ID:
00460776
Views:
10
>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)

  * your range is in the table, so you can likely say things like:
  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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform