Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default verifing entry is numeric

is there a quick way (in VBA) to assure that the user has entered (into a
predetermined rangeon a worksheet) a numeric.

i can easily setup a formula to montor changes in the range, but don't know
how to check if the entry is numeric, and, if it is not, reject it ...


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default verifing entry is numeric

if isnumeric(activesheet.range("a1").value)) then

Will be true for empty cells, '1234 (numbers as text).

if application.isnumber(activesheet.range("a1").value )) then

Is the worksheet function--which is more stringent.

mark kubicki wrote:

is there a quick way (in VBA) to assure that the user has entered (into a
predetermined rangeon a worksheet) a numeric.

i can easily setup a formula to montor changes in the range, but don't know
how to check if the entry is numeric, and, if it is not, reject it ...


--

Dave Peterson

Reply
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
Numeric Data Entry problem NukeTony Excel Discussion (Misc queries) 2 May 2nd 08 02:50 PM
Numeric entry Madhav Excel Worksheet Functions 1 August 3rd 06 10:05 AM
Require alpha-numeric entry Dana Excel Worksheet Functions 3 September 7th 05 07:53 AM
How Come Calcs are wrong when verifing totals to items method beejee Excel Worksheet Functions 2 May 11th 05 05:49 AM
resolving a numeric cell entry for its meaning vtcrob Excel Worksheet Functions 0 February 4th 05 02:23 AM


All times are GMT +1. The time now is 07:41 AM.

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"