Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a cell that data put into it needs to be validated, with upper and
lower limits. Need to write click event which will control data input within the limits, for example: Input box can only accept between 15 and 75, any idea how to write the code. Do while numbers ........................... Loop Thanks for your help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Rather than using code, you can use Data Validation to do this.
Select the cell in question, then go to the Data menu and choose Validation. In the Allow drop down, choose "Decimal" and in the Data drop down, choose "between". Enter 15 and 75 as the minimum and maximum values. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "W. Adam Glab" wrote in message om... I have a cell that data put into it needs to be validated, with upper and lower limits. Need to write click event which will control data input within the limits, for example: Input box can only accept between 15 and 75, any idea how to write the code. Do while numbers ........................... Loop Thanks for your help. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Why not try data validation.
select the cell(s) you wantdatavalidationallow customtype in =and(a215,a2<75) -- Don Guillett SalesAid Software "W. Adam Glab" wrote in message om... I have a cell that data put into it needs to be validated, with upper and lower limits. Need to write click event which will control data input within the limits, for example: Input box can only accept between 15 and 75, any idea how to write the code. Do while numbers ........................... Loop Thanks for your help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
split post code (zip code) out of cell that includes full address | Excel Discussion (Misc queries) | |||
Code to conditional format all black after date specified in code? | Excel Discussion (Misc queries) | |||
Drop Down/List w/Code and Definition, only code entered when selec | Excel Worksheet Functions | |||
Convert a Number Code to a Text Code | Excel Discussion (Misc queries) | |||
VBA code delete code but ask for password and unlock VBA protection | Excel Programming |