Hello,
I have a form with many check boxes and I would like to change the value that populates the excel to something other than TRUE if it's checked and null if it's not checked.
Right now my code is as follows:
ws.Cells(iRow, 11).Value = Me.cb_FPS3.Value
ws.Cells(iRow, 12).Value = Me.cb_PAFC.Value
ws.Cells(iRow, 13).Value = Me.cb_NMS.Value
ws.Cells(iRow, 14).Value = Me.cb_SOS.Value
ws.Cells(iRow, 15).Value = Me.cb_FOSS.Value
I'd like to populate the cell with the value of the checkbox abbreviation (FPS3, PAFC, etc.) and have the cell blank if the box is not checked.
Any ideas?
Thanks.
I have a form with many check boxes and I would like to change the value that populates the excel to something other than TRUE if it's checked and null if it's not checked.
Right now my code is as follows:
ws.Cells(iRow, 11).Value = Me.cb_FPS3.Value
ws.Cells(iRow, 12).Value = Me.cb_PAFC.Value
ws.Cells(iRow, 13).Value = Me.cb_NMS.Value
ws.Cells(iRow, 14).Value = Me.cb_SOS.Value
ws.Cells(iRow, 15).Value = Me.cb_FOSS.Value
I'd like to populate the cell with the value of the checkbox abbreviation (FPS3, PAFC, etc.) and have the cell blank if the box is not checked.
Any ideas?
Thanks.