Hi,
are you talking about a word-table and about VBA or VB?
This is a Word.VBA group.
A word-table doesn't have a name property, as far as I see.
If I google for "named table", I get posts from sqlserver, access,
Excel and so on, but hardly from word.vba.
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
You can't name a table in Word you have to either use the table that's currently select or
the tables index number in the document. You can iterate the table using the Rows or
Columns collection but this only works if there are no merged rows/columns. You could use
the tables Cells property and the Cells collection or maybe you could just use the Find
object to search for what you want? You don't say what is you specifically want to do.
Hi Hcoms,
even with horizontally or vertically merged cells,
this should do:
Sub test445()
Dim t As Table
Dim c As Cell
Set t = ActiveDocument.Tables(1)
For Each c In t.Range.Cells
c.Select
Next
End Sub