Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2006, 12:40 PM
dammad83 dammad83 is offline
Novice
Validating Dropdown box
 
Join Date: Mar 2006
Posts: 1
dammad83
Default Validating Dropdown box

I am using Office Pro 97 on an XP box.

I am creating forms in word and am trying to get a dropdown box to check to see if anything is in it before allowing the user to move on the the next box.. I can do this with the following two macros if I am using a text box, but they will not run on a dropdown. I have spent way too much time on this already. Any help greatly appreciated!!!

Sub ErrDD2()


Dim val1 As String
Dim obj As Object

val1 = ActiveDocument.FormFields("Dropdown2").Result
If val1 = " " Then
Application.OnTime When:=Now + TimeValue("00:00:01"), Name:="GoBacktoDD2"
Else
Application.Run MacroName:="DlgBox"
'Application.Run "DlgBox"
End If

End Sub

Sub GoBacktoDD2()
ActiveDocument.Bookmarks("Dropdown2").Range.Fields (1).Result.Select
End Sub
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validating Dropdown box Validating Office - Activation problem Ian A C Office 1 05-03-2008 08:48 PM
Trouble With Data Validation And Filtering On A Dropdown zura04 Excel 0 10-24-2006 12:54 PM
Word Forms : Dropdown lists wferaera45 Word 0 04-06-2006 03:02 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:13 AM.


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