Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 155
Default Required Fields for many Text boxes on a userform

Hi there,

I have user form containing approximately 90 textboxes, spread over 5 tabs.
75 of these fields are required for data entry.

Question:
Is there a function that i can use, and call on each text box, that checks
to see if the required fields on each tab contain data in it. if it doesn't,
i want to present a message to the user listing the fields that need to be
completed before the submission can be completed successfully, or the user
can move to the next tab.

Any ideas?
--
Carlee
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Required Fields for many Text boxes on a userform

Try this: for each textbox that you want to check create a change
event function that calls another function to test if Len$
(textboxControl.Text) = 0 or not.
If you don't want the "next" or "finish" button to be enabled
(btnControl.enabled = false or true) until the user enteres data into
all the required fields you can create a function that checks the Len$
(textboxControl.Text) = 0 for all of the controls and only if all of
the. The function would be called again from the _Change() events.

Hope that helps.

On Apr 22, 8:52 pm, Carlee wrote:
Hi there,

I have user form containing approximately 90 textboxes, spread over 5 tabs.
75 of these fields are required for data entry.

Question:
Is there a function that i can use, and call on each text box, that checks
to see if the required fields on each tab contain data in it. if it doesn't,
i want to present a message to the user listing the fields that need to be
completed before the submission can be completed successfully, or the user
can move to the next tab.

Any ideas?
--
Carlee



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
Validating Required Fields in Userform robinsn Excel Discussion (Misc queries) 0 July 24th 10 02:16 PM
Make text cells and combo boxes required? mlroy@savvis Excel Discussion (Misc queries) 2 July 24th 06 08:19 PM
Userform text & combobox population help required please Newbie1 Excel Programming 5 February 28th 04 05:19 PM
userform text boxes Jo[_4_] Excel Programming 4 September 23rd 03 03:38 AM


All times are GMT +1. The time now is 08:17 PM.

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

About Us

"It's about Microsoft Excel"