LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IsNumeric with array or range Jerry M New Users to Excel 4 April 24th 07 01:29 PM
tools/options/chart/not plotted doesnot work Excel Peter N Charts and Charting in Excel 1 November 14th 06 11:59 AM
excel doesnot print solidad New Users to Excel 6 August 16th 06 05:27 PM
"Search for files and folders" option doesnot work for 100% ECouwenberg Excel Discussion (Misc queries) 7 January 11th 06 04:50 PM
opposite of IsNumeric thephoenix12 Excel Discussion (Misc queries) 10 June 24th 05 07:37 PM


All times are GMT +1. The time now is 12:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"