M
Mikeice
I have a command button that I have disabled unless a certain number is
entered.
but I need it disabled also if the cell is blank any ideas.
Here is the code thus far.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Sheets("Quality Accessing Template").Range("B6").Value >= 0 And
Sheets("Quality Accessing Template").Range("B6").Value <= 9999 Then
Sheets("Quality Accessing Template").CommandButton1.Enabled = True
Else
Sheets("Quality Accessing Template").CommandButton1.Enabled = False
End If
End Sub
entered.
but I need it disabled also if the cell is blank any ideas.
Here is the code thus far.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Sheets("Quality Accessing Template").Range("B6").Value >= 0 And
Sheets("Quality Accessing Template").Range("B6").Value <= 9999 Then
Sheets("Quality Accessing Template").CommandButton1.Enabled = True
Else
Sheets("Quality Accessing Template").CommandButton1.Enabled = False
End If
End Sub