Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I have a user form containing about 75 combo boxes. All cbo's require data to be entered prior to the user submitting to the sheet log. Question: Is there a script that loops through all fields and displays a message if any boxes are missing data? -- Carlee |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Dim ctrl as Object for each ctrl in Userform1.Controls if typeof ctrl is msforms.combobox then if ctrl.Value = "" then msgbox "Missing Data in " & ctrl.Name exit sub end if end if Next -- Regards, Tom Ogilvy "Carlee" wrote: Hi there, I have a user form containing about 75 combo boxes. All cbo's require data to be entered prior to the user submitting to the sheet log. Question: Is there a script that loops through all fields and displays a message if any boxes are missing data? -- Carlee |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validating Required Fields in Userform | Excel Discussion (Misc queries) | |||
how to have fields to be required | Excel Worksheet Functions | |||
Required Fields for many Text boxes on a userform | Excel Programming | |||
Required fields | Excel Programming | |||
Required fields | Excel Discussion (Misc queries) |