G
Greg Maxey
Last week I thought that I had figured out a way to get the index value of a
formfield using VBA. Today I noticed that it fails if I have two or more
formfields in a table row. For some reason if I have a row of formfields in
a table, all of the formfields in the same row return the same value. Can
anyone explain why this isn't working:
Sub GetIndex()
Dim oDoc As Document
Set oDoc = ActiveDocument
oDoc.Variables("Index").Value = _
oDoc.Range(0, Selection.Bookmarks(1).Range.End).Bookmarks.Count
MsgBox oDoc.Variables("Index").Value
End Sub
formfield using VBA. Today I noticed that it fails if I have two or more
formfields in a table row. For some reason if I have a row of formfields in
a table, all of the formfields in the same row return the same value. Can
anyone explain why this isn't working:
Sub GetIndex()
Dim oDoc As Document
Set oDoc = ActiveDocument
oDoc.Variables("Index").Value = _
oDoc.Range(0, Selection.Bookmarks(1).Range.End).Bookmarks.Count
MsgBox oDoc.Variables("Index").Value
End Sub