Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default best way to validate data in forms; 2010

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default best way to validate data in forms; 2010

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
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
Excel 2010 to auto-generate an email to recipients in outlook 2010 dmcmillo Excel Programming 0 June 14th 12 10:12 PM
Form 4 Range of time from 1/20/2010 4:00 AM To 1/21/2010 10:00 AM Peter Gonzalez[_2_] Excel Worksheet Functions 2 January 26th 10 06:58 PM
How to validate entries with Data Forms in xls 2003? Marc S. Setting up and Configuration of Excel 1 May 25th 06 03:19 PM
Validate data JT[_2_] Excel Programming 2 January 27th 05 08:06 PM


All times are GMT +1. The time now is 02:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"