ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Editing Number Input on a User Form (https://www.excelbanter.com/excel-programming/321922-editing-number-input-user-form.html)

Don Wiss

Editing Number Input on a User Form
 
When editing input on a user form there is an IsDate function. But no
companion IsNumber. If I use the WorksheetFunction.IsNumber it sees the
input from the form as a string, and even when a valid number it says it
isn't. What is a way to check that the user entered a valid number?

Don <donwiss at panix.com.

Dave Peterson[_5_]

Editing Number Input on a User Form
 
Maybe:

if isnumeric()....



Don Wiss wrote:

When editing input on a user form there is an IsDate function. But no
companion IsNumber. If I use the WorksheetFunction.IsNumber it sees the
input from the form as a string, and even when a valid number it says it
isn't. What is a way to check that the user entered a valid number?

Don <donwiss at panix.com.


--

Dave Peterson


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com