View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Using Drop Down box that can be edited


One possibility would be to replace one of the items in the list with a user
input item. You could do this with a macro run on exit from the dropdown
field

Assuming the dropdown field Dropdown1, put an item at the end of the
dropdown list "Enter your own value" then run the following macro on exit
from that field

Dim sChoice As String
Dim fDD As FormFields
Set fDD = ActiveDocument.FormFields
MsgBox fDD("Dropdown1").Result
If InStr(1, fDD("Dropdown1").Result, "Enter your own value") Then
sChoice = InputBox("Enter your own")
With fDD("Dropdown1").DropDown.ListEntries
.Item("Enter your own value").Delete
.Add sChoice
fDD("Dropdown1").Result = sChoice
End With
End If

This replaces the "Enter your own value" item with the input value and sets
that as the result.
http://www.gmayor.com/installing_macro.htm
--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Francis Cunningham, Jr."
wrote in message ...
Hi,
I have created a form in Word 2007, but would like to have the drop down
box
I created to also be overwritten by the user if the items in the drop box
doesn't include their choice. Thanks
fjcunninghamjr