V
VBA Neophyte
I have a table which contains rows with different formats (some with merged
cells, some with split cells). It contains cells with form fields and cells
with plain text. It is protected.
There are some rows which, in cell 3, have a checkbox. If the checkbox
value in cell 3 = true, I want to copy cells 2, 4 and 5 of this row to a new
table at the end of the document or into a new table in a new separate
document. Cells 2 and 4 are plain text in; cell 5 is a form field.
I don't know how to do a copy statement for a range with some plain text
cells and a form field cell.
Also, this is pretty repetitive, so I was looking for something that would
just step through the table without having to specifically refer to formfield
Bookmark name, e.g. using a counter index to do the following:
i = count(rows in table)
use i to loop through the rows:
row(i) : if cell 3 contains a checkbox with value = Yes, copy contents of
cells 2, 4 and 5 to next line in new table*
(*create the table when you run into the first instance of cell 3
checkbox=true)
cells, some with split cells). It contains cells with form fields and cells
with plain text. It is protected.
There are some rows which, in cell 3, have a checkbox. If the checkbox
value in cell 3 = true, I want to copy cells 2, 4 and 5 of this row to a new
table at the end of the document or into a new table in a new separate
document. Cells 2 and 4 are plain text in; cell 5 is a form field.
I don't know how to do a copy statement for a range with some plain text
cells and a form field cell.
Also, this is pretty repetitive, so I was looking for something that would
just step through the table without having to specifically refer to formfield
Bookmark name, e.g. using a counter index to do the following:
i = count(rows in table)
use i to loop through the rows:
row(i) : if cell 3 contains a checkbox with value = Yes, copy contents of
cells 2, 4 and 5 to next line in new table*
(*create the table when you run into the first instance of cell 3
checkbox=true)