jim may
Well-known Member
- Joined
- Jul 4, 2004
- Messages
- 7,486
Nothing seems to work properly with this code... Any ideas? TIA, Jim
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B12:I15")) Is Nothing Then
Select Case Target.Value
Case Application.WorksheetFunction.IsText(Target)
MsgBox "You have text"
'allow formatting
Case Is = ""
MsgBox "You have a blank"
'disallow formatting
Case IsNumeric(Target)
MsgBox "You have a number"
'not sure
Case Else
End Select
End If
End Sub