Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-20-2016, 03:32 AM
jambo2016 jambo2016 is offline VBA Mandatory/Required Fields - legacy and activex Windows 7 32bit VBA Mandatory/Required Fields - legacy and activex Office 2010 32bit
Novice
VBA Mandatory/Required Fields - legacy and activex
 
Join Date: May 2016
Posts: 1
jambo2016 is on a distinguished road
Default VBA Mandatory/Required Fields - legacy and activex


I'm designing quite a large form , which uses legacy text boxes for customers to fill in sections such as personal details, etc. I also use Activex ComboBoxes for Drop Down lists and also use the legacy checkboxes.

What I need help with is setting each up as mandatory fields. The legacy text boxes can be sorted each with a macro:

Sub MustFillIn()
If ActiveDocument.FormFields("ReferringSchool").Resul t = "" Then
Do
sInFld = InputBox("Please provide the name of the referring school")
Loop While sInFld = ""
ActiveDocument.FormFields("ReferringSchool").Resul t = sInFld
End If
End Sub

But i have no idea how to make an activex combobox (drop down list) mandatory - or msg to pop up if empty
Reply With Quote
  #2  
Old 05-20-2016, 04:35 AM
macropod's Avatar
macropod macropod is offline VBA Mandatory/Required Fields - legacy and activex Windows 7 64bit VBA Mandatory/Required Fields - legacy and activex Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Cross-posted (and replied to) at: http://answers.microsoft.com/en-us/o...a-15766e0ee71c
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandatory password possible? Cropfield Word 0 01-08-2016 06:37 AM
Legacy Form Fields Miscalculate LauraL Word 2 09-21-2015 08:47 PM
VBA Mandatory/Required Fields - legacy and activex Focus wonky in my legacy form fields/table CindyHa Word 8 01-13-2015 05:37 PM
VBA Mandatory/Required Fields - legacy and activex Mandatory field thedeadzeds Word VBA 2 05-09-2013 06:30 PM
VBA Mandatory/Required Fields - legacy and activex How do I Convert All Legacy Check Boxes to ActiveX? GreenPolyps Word 1 12-20-2011 05:11 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft