Combo Box with Yes/No

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

Guest

I am trying to create a simple Unbound Combo Box with Yes and No. I am a
little familiar with VBA Access. I used the Control toolbox to creat the box
but cant seem to find where I can add the rows. Do you use code or can the
rows be added in the property box?
 
Try the following code:

Private Sub Document_Open()
ComboBox1.Clear
ComboBox1.AddItem "Yes"
ComboBox1.AddItem "No"
'Set initial value
ComboBox1.Value = "Yes"
End Sub
 
Thanks Greg
I made the change in a .dot file and when I open the file as a template
(.dot) it works. However when I try to use the template for a document.doc
it doesn't work. Does that make sense. You can tell, this is the first time
I have messed with form in word. Thanks for your patience.
 
Back
Top