sjane was telling us:
sjane nous racontait que :
> Doug - thank you for the prompt response - unfortunately, while the
> macro added the row and text form fields to each of the columns in
> the row, only the first text form field in the row had a bookmark name
I do not know what is wrong with your system, but if I run Doug's macro as
is, I get a different name for each formfield (Text3, Text4, Text5, etc.)
However, try this variation, it will name each formfield according to the
row number and column number:
Sub addrow()
Dim rownum As Integer, i As Integer
Dim myFF As FormField
ActiveDocument.Unprotect
ActiveDocument.Tables(1).Rows.Add
rownum = ActiveDocument.Tables(1).Rows.Count
For i = 1 To ActiveDocument.Tables(1).Columns.Count
ActiveDocument.FormFields.Add _
Range:=ActiveDocument.Tables(1).Cell(rownum, i).Range, _
Type:=wdFieldFormTextInput
Set myFF = ActiveDocument.Tables(1).Cell(rownum, i).Range.FormFields(1)
myFF.Name = "Text_" & rownum & "_" & i
Set myFF = Nothing
Next i
ActiveDocument.Tables(1).Cell(ActiveDocument.Tables(1).Rows.Count, _
ActiveDocument.Tables(1).Columns.Count).Range.FormFields(1) _
.ExitMacro = "addrow"
ActiveDocument.Tables(1).Cell(ActiveDocument.Tables(1).Rows _
.Count, 1).Range.FormFields(1).Select
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
End Sub

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
sjane - 09 Jan 2006 14:22 GMT
Jean-Guy - thank you for your assistance. Apparently my system does have a
problem which I am not certain how to address. After running your macro, in
the bookmark list I have new bookmark names which the macro created.
However, when you go to the specific text form field and double click on it,
the bookmark name box is blank. Thanks again.
sjane
> sjane was telling us:
> sjane nous racontait que :
[quoted text clipped - 40 lines]
>
> End Sub