ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Force a number input (https://www.excelbanter.com/excel-discussion-misc-queries/219219-force-number-input.html)

Gunti

Force a number input
 
Hi,
I'd like to know if it's possible for force people to put in a number in
some field and create a msgbox if it's not a number. And how it's possible is
probably more important. An example code would be appreciated!

Gunti

David Biddulph[_2_]

Force a number input
 
The function you need is Data validation.
Look it up in Excel help.
--
David Biddulph


"Gunti" wrote in message
...
Hi,
I'd like to know if it's possible for force people to put in a number in
some field and create a msgbox if it's not a number. And how it's possible
is
probably more important. An example code would be appreciated!

Gunti




OssieMac

Force a number input
 
Hi Gunti,

Lookup data validation in Help. I think that you will find sufficient info
there to do what you want.

--
Regards,

OssieMac


"Gunti" wrote:

Hi,
I'd like to know if it's possible for force people to put in a number in
some field and create a msgbox if it's not a number. And how it's possible is
probably more important. An example code would be appreciated!

Gunti



All times are GMT +1. The time now is 01:55 AM.

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