Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Table Properties
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00460713
Message ID:
00460782
Vues:
13
I used that to make sure I was in the table. Are you saying there is another way to populate the cells in a table other than:
with oWord.Selection.Tables(1)
   .Cell(2,2).Range.InsertAfter("Hello World")
   .Cell(2,3).Range.InsertAfter("Goodbye World")
endwith
The problem lies in having to use .Tables(1) or .Tables(2), etc.

>>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
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform