Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to use the cell address of a checkbox's linked cell. How do I
reference it in VBA so I don't have to write the code over and over. I have the location hardcoded now, but I have about 30 checkboxes. Here is what I want to happen when I click any checkbox. Private Sub TTWK1_Click() If Cells(3, 2).Value = True Then Cells(3, 1) = "=NOW()" Selection.Copy Selection.PasteSpecial Paste:=xlPasteValues Application.CutCopyMode = False Else Cells(3, 1) = "" End If End Sub Thank you for any help. -- Athena Payroll Goddess |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checkbox Question | Excel Discussion (Misc queries) | |||
Checkbox Question | Excel Discussion (Misc queries) | |||
Checkbox question | Excel Programming | |||
CheckBox question | Excel Programming | |||
Setting LinkedCell on a CheckBox Control | Excel Programming |