Jun 7, 2001 #1 Tom21 Programmer Jun 5, 2001 9 GB An easy one for you pro's out there..... How do I go about checking for a 'numeric value only' in a cell, even if the cell is text based? Cheers, Tom.
An easy one for you pro's out there..... How do I go about checking for a 'numeric value only' in a cell, even if the cell is text based? Cheers, Tom.
Jun 7, 2001 #2 DarkSun Programmer Mar 8, 2001 232 GB Try this. =ISNUMBER(A1*1) the *1 is there to get round the text format problem. Upvote 0 Downvote
Jun 7, 2001 Thread starter #3 Tom21 Programmer Jun 5, 2001 9 GB It's tellin' me that ISNUMBER isn't a function. I couldn't find the thing in the help file either. I was looking at 'Cint' as a conversion function, but I don't know if I can put that in an if statement, becuase it'll probably throw up an error..... In which case how would I deal with that? I.E. If not error from function then some code end if Nice one, Tom. Upvote 0 Downvote
It's tellin' me that ISNUMBER isn't a function. I couldn't find the thing in the help file either. I was looking at 'Cint' as a conversion function, but I don't know if I can put that in an if statement, becuase it'll probably throw up an error..... In which case how would I deal with that? I.E. If not error from function then some code end if Nice one, Tom.
Jun 7, 2001 #4 DarkSun Programmer Mar 8, 2001 232 GB Sorry, I thought you were in Excel not VBA! use this. Information.IsNumeric(MyVal) Where MyVal is the value you are checking. Upvote 0 Downvote
Sorry, I thought you were in Excel not VBA! use this. Information.IsNumeric(MyVal) Where MyVal is the value you are checking.
Jun 7, 2001 Thread starter #5 Tom21 Programmer Jun 5, 2001 9 GB That's done the trick. Thanks a lot mate. Tom. Upvote 0 Downvote