Hi,
I would like to have a Msgbox appearing if the user enters data that is not numeric.
This should only apply for cells K2:K40
Any help is much appreciated,
Kbka
Hi,
I would like to have a Msgbox appearing if the user enters data that is not numeric.
This should only apply for cells K2:K40
Any help is much appreciated,
Kbka
Hi,
Select the range, then goto the Data validation.
Select Decimal option and choose max and min range for the numeric values.
Then goto to Input Message tab and put the Title and Error message you want to display and finally click OK.
Hope it will help you.
Regards
taps
You can use Data Validation for that.
Select cells K2 to K40. Then, on the Data Ribbon, choose Data Validation. Choose Whole Number or Decimal and choose what limits you want.
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Hi,
You can also use below codes in a Command button to check the data type.
Regards![]()
Dim c As Range For Each c In Range("K2:K40").Cells c.Select If Not IsNumeric(ActiveCell.Value) Then MsgBox "The " & ActiveCell.Address & " cell does not contains numeric value" End If Exit Sub Next
taps
Great! Exactly what i need!
Regards,
Kbka
You're welcome. Thanks for the rep.
If you want to use code, you could use a Worksheet Change event monitoring cells K2 to K40.
Regards, TMS
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks