tv9_rohith
Board Regular
- Joined
- Sep 1, 2011
- Messages
- 96
I have 2 Command buttons in excel sheet.
for activation of command button1 I have given the formula as :
Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveSheet.Range("B10") = "" Then
ActiveSheet.CommandButton1.Enabled = False
Else
ActiveSheet.CommandButton1.Enabled = True
End If
End Sub
Now I have one more command button where I would like to give some parameters for the activation of command button that is
If from Cell D2 to K2( 1 Row ) there is value then the command button 2 should be active or else it should be inactive.
Please help me
for activation of command button1 I have given the formula as :
Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveSheet.Range("B10") = "" Then
ActiveSheet.CommandButton1.Enabled = False
Else
ActiveSheet.CommandButton1.Enabled = True
End If
End Sub
Now I have one more command button where I would like to give some parameters for the activation of command button that is
If from Cell D2 to K2( 1 Row ) there is value then the command button 2 should be active or else it should be inactive.
Please help me