Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Watch for word wrap:
Private Sub CheckBox1_Click() With CheckBox1 If .Value = True Then ActiveSheet.Range("A2").Value = Range("Sheet2!$B$4").Value If .Value = False Then ActiveSheet.Range("A2").Value = "" End With End Sub or possibly Private Sub CheckBox1_Click() If CheckBox1.Value = True Then ActiveSheet.Range("A2").Value = Range("Sheet1!$B$4").Value Else ActiveSheet.Range("A2") = "" End If End Sub "Bob" wrote in message ... How do you make if True, Display the value of Sheet2 Cell B4? Below will not work. Private Sub CheckBox1_Click() With CheckBox1 If CheckBox1.Value = True Then ActiveSheet.Range("A2").Value = "Sheet2!$B$4" If CheckBox1.Value = False Then ActiveSheet.Range("A2") = "" End With End Sub Thank you |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check Box - Macro code | Excel Discussion (Misc queries) | |||
code to check condition for each row | Excel Discussion (Misc queries) | |||
Please check my code!!!! | Excel Discussion (Misc queries) | |||
code to hide check boxes | Excel Programming | |||
Check my code to use template? | Excel Programming |