Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I know how to use validation in cells and I know how to build basic
forms. (lol - aren't I smart). What's the best way to validate data entered from a form. I don't want anything getting on a sheet that isn't valid. I need the user to fix everything before the save is executed. So far it looks like a lot of coding to accomplish this. How is this generally done? How do you pros do it? Validation would cover numeric ranges, dates, ... standard stuff I guess. Thank you. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
cate wrote:
I know how to use validation in cells and I know how to build basic forms. (lol - aren't I smart). What's the best way to validate data entered from a form. I don't want anything getting on a sheet that isn't valid. I need the user to fix everything before the save is executed. So far it looks like a lot of coding to accomplish this. How is this generally done? How do you pros do it? Validation would cover numeric ranges, dates, ... standard stuff I guess. Thank you. '------------------------------------------------ sub button_ok if validate () then unload me end sub '-------------------------------------------------- function validate as boolean if txt.value == "" then msgbox "txt cannot be empty" txt.setfocus exit function if ....... then end if validate = true end function '---------------------------------------- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2010 to auto-generate an email to recipients in outlook 2010 | Excel Programming | |||
Form 4 Range of time from 1/20/2010 4:00 AM To 1/21/2010 10:00 AM | Excel Worksheet Functions | |||
How to validate entries with Data Forms in xls 2003? | Setting up and Configuration of Excel | |||
Validate data | Excel Programming |