Hi
Here a possibility.
I've assumed that the default for an array is used (ie 0) but if you want to set the array base index then use the
statement to determine what starting number you want to use. If you change the base to 1, then change the +35 to +34.
arr = Array("chkDisk", "chkViaEmailFtp", "chkFilm", "chkCra", "chkPhotos", "chkYes", "chkNo", "chkEpson", "chkImpress", "chkPdfFile")
For i = LBound(arr) To UBound(arr)
If c.Offset(0, i + 35).Value = "" Then
ActiveSheet.Shapes(arr(i)).Value = "0"
Else
ActiveSheet.Shapes(arr(i)).Value = "1"
End If
Next i
I'm guessing that the items are checkboxes, but I don't know where they are. If on a sheet then the above may work (didn't test....), but if on a form then you will have to rejig along the lines of
me.controls(arr(i)).value
Hope that gives you some ideas.
rylo
Bookmarks