A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
| I used the following code in the class module: <br><br>Private WithEvents myControl As MSForms.CheckBox <br><br>Public Property Set Ctrl(NewVal As MSForms.CheckBox) <br><br>Set myControl = NewVal <br><br>End Property <br><br>Private Sub myControl_Click() <br><br>ActiveCell = "Christina" <br><br>'I used ActiveCell as I am unsure what I should enter to perform the function to match the value of the CheckBox caption to the date in Column A, then enter a value 3 columns over.' <br><br>End Sub <br><br>I used the following code in the standard module: <br><br>Sub ShowForm() <br><br>Dim frm As UserForm2 <br><br>Dim cbx As MSForms.CheckBox <br><br>Dim ocbx As CCheckBox <br><br>Set mCln = New Collection <br><br>Set frm = New UserForm2 <br><br>For Each cbx In frm.Controls <br><br>If TypeName(cbx) = "CheckBox" Then <br><br>ActiveCell.Value = "Christina" <br><br>'I used ActiveCell as I am unsure what I should enter to perform the function to match the value of the CheckBox caption to the date in Column A, then enter a value 3 columns over.' <br><br>Set ocbx = New CheckBox <br><br>Set ocbx.Ctrl = ctl <br><br>mCln.Add ocbx <br><br>End If <br><br>Next cbx <br><br>frm.Show <br><br>End Sub <br><br>The checkbox still performs no functions when clicked. Any advice on how to correct this? |
|---|