How do you leave a blank space in drop down field?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to know how to leave a blank space in a drop down field so that when
protecting the document, someone could write it in if they are not in the
drop down list?
 
You can create a "blank" entry in the dropdown field by creating one entry
that's just a single space, but this will not allow users to add their own
text. For this you need a combo box, which is not available as a form field.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
While Suzanne's reply is correct you could use vba to allow a user to add
text eg
If you enter a list item (say) "Enter your own", you could use the following
macro run on exit from the dropdown field (here the default Dropdown1) which
will add the user's entry to the list when 'Enter your own' is chosen

Sub EnterYourOwn()
Dim oFld As FormFields
Set oFld = ActiveDocument.FormFields
Select Case oFld("Dropdown1").Result
Case Is = "Enter your own"
start:
sText = InputBox("Enter the text for this field")
If sText = "" Then
MsgBox "This field may not be left blank"
GoTo start:
End If
oFld("Dropdown1").Result = sText
Case Else
'Do nothing
End Select
End Sub

http://www.gmayor.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top