Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
check Isnumeric, doesnot work well
Hi
my problem is when placing a number begining wiht a letter (p80) thi code does recognise it as a number so the macro take it as it is, bu this couses a problem to me becasue i do want the macro to discard th number if it contains some numbers and some letters. however, the code works fins when i put only a number (Ex: 800) sub test() Dim vInput As String Dim myRow As Range vInput = InputBox("Please Write Your Item", "Add New Item") If IsNumeric(vInput) Then MsgBox ("Please Enter An Item") vInput = InputBox("Please Write Your Item", "Add New Item") End If End sub yours hesha -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
IsNumeric with array or range | New Users to Excel | |||
tools/options/chart/not plotted doesnot work Excel | Charts and Charting in Excel | |||
excel doesnot print | New Users to Excel | |||
"Search for files and folders" option doesnot work for 100% | Excel Discussion (Misc queries) | |||
opposite of IsNumeric | Excel Discussion (Misc queries) |