Help!

Word forms & combo boxes

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> User Forms RSS
Next:  Junk e-mail was not working  
Author Message
grubbs



Joined: Jun 06, 2008
Posts: 1



PostPosted: Fri Jun 06, 2008 2:31 pm    Post subject: Word forms & combo boxes

I created a form in word that has four combo boxes used in it. Here's the problem when the form is submitted everything it my combo boxes changes back to the first item on the list. I was wondering if maybe something is wrong with vba code. Can someone please take a look & let me know if they see an issue.

Private Sub Document_Open()
With ComboBox1
.AddItem "bird"
.AddItem "dog"
.AddItem "cat"
.ListIndex = 0
End With

With ComboBox2
.AddItem "New (CIA)"
.AddItem "Change (CIA)"
.AddItem "Obsolete (CIA)"
.AddItem "Repair (NO CIA)"
.AddItem "Re-Order (NO CIA)"
.AddItem "Request (NO CIA)"
.AddItem "type (NO CIA)"
.ListIndex = 0
End With

With ComboBox3
.AddItem "Fix"
.AddItem "Gag"
.AddItem "Special"
.AddItem "Other"
.AddItem "Over"
.ListIndex = 0
End With

With ComboBox4
.AddItem "Atl"
.AddItem "Bryan"
.AddItem "Cap"
.AddItem "CD"
.AddItem "Col"
.AddItem "Dyn"
.AddItem "Gal"
.AddItem "G5"
.AddItem "Int"
.AddItem "NI"
.AddItem "Or"
.AddItem "Pre"
.AddItem "Py"
.AddItem "Pr"
.AddItem "Scep"
.AddItem "SI"
.AddItem "T2"
.AddItem "TS"
.AddItem "Van"
.AddItem "Ven"
.AddItem "Ver"
.AddItem "Zep"
.AddItem "Zp"
.AddItem "Type"
.AddItem "N/A"
.ListIndex = 0
End With

End Sub

Thank you,
Grubbs
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> User Forms All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum