N
Nadine Progscha
I created a protected word-document with several
formfields. In this document you can also find table with
36 cells (4 columns, 9 rows). In each of the cells of the
table I put a checkbox. The user navigates through the
document with the keyboard, so he jumps from formfield to
formfield. When he reaches the table, he should only have
the possibility to check one of four checkboxes in each
row.
What I need is some code which checks if a checkbox in the
row has the status "checked" or not. If it is checked I
need a command to tell the cursor to go to the first
checkbox in the next row of the table.
I tried it with this code, but it doesn't work:
If ActiveDocument.FormFields("checkbox1").CheckBox.Value =
true Then
Selection.GoTo What = wdGoToField, Name = "checkbox5"
End If
formfields. In this document you can also find table with
36 cells (4 columns, 9 rows). In each of the cells of the
table I put a checkbox. The user navigates through the
document with the keyboard, so he jumps from formfield to
formfield. When he reaches the table, he should only have
the possibility to check one of four checkboxes in each
row.
What I need is some code which checks if a checkbox in the
row has the status "checked" or not. If it is checked I
need a command to tell the cursor to go to the first
checkbox in the next row of the table.
I tried it with this code, but it doesn't work:
If ActiveDocument.FormFields("checkbox1").CheckBox.Value =
true Then
Selection.GoTo What = wdGoToField, Name = "checkbox5"
End If