Quote Originally Posted by JPDO
Hi Howard,

The flag in my original post meant that a cell-value had the value "Y" and in this case i set the formfillField CHECK10 (which is a checkbox) to true.
If the cell-value = "N" i do nothing because the default value of the checkbox is NO (Check10 = False)

Thanks anyway.
The code is incorrect because you did not define a value for the variable flag.