Hello, I am new to using the visual basic editor. I was able to create a word document with combo boxes. When I run the combo boxes, they run fine. When I save the document and re-open it with visual basic editor closed, the document doesn't show the values for the combo boxes on the drop-down list. The combo boxes are blank. Again, they DO work when I "run" them. I don't know how to save the document so that the combo-boxes can be used by other people when I save it. This is what I have for the combo boxes:
Sub TypeOfReport()
With ActiveDocument.ComboBox1
.Clear
.AddItem "Near-miss"
.AddItem "1st Aid"
.AddItem "Injury"
.AddItem "Non-work related"
End With
End Sub
Sub Sex()
With ActiveDocument.ComboBox2
.Clear
.AddItem "Female"
.AddItem "Male"
End With
End Sub
Sub Department()
With ActiveDocument.ComboBox3
.Clear
.AddItem "2nd Shift Assembly"
.AddItem "2nd Shift Mass Finish"
.AddItem "2nd Shift Polishing"
.AddItem "2nd Shift QA"
.AddItem "2nd Shift Ring Cell"
.AddItem "2nd Shift Stamp & Strike"
.AddItem "2nd Shift Tooling"
.AddItem "2nd Shift Waxing"
.AddItem "Assembly"
.AddItem "Casting"
.AddItem "DBY"
.AddItem "Engineering"
.AddItem "Facilities"
.AddItem "Inventory Control"
.AddItem "Mass Finish"
.AddItem "Polishing"
.AddItem "QA"
.AddItem "Ring Cell"
.AddItem "SDR"
.AddItem "Security"
.AddItem "Shipping & Receiving"
.AddItem "Stamp & Strike"
.AddItem "Studio"
.AddItem "Tooling"
.AddItem "Waxing/Molding"
.AddItem "Wrapping"
End With
End Sub
Any help greatly appreciated. Thank you.
Sub TypeOfReport()
With ActiveDocument.ComboBox1
.Clear
.AddItem "Near-miss"
.AddItem "1st Aid"
.AddItem "Injury"
.AddItem "Non-work related"
End With
End Sub
Sub Sex()
With ActiveDocument.ComboBox2
.Clear
.AddItem "Female"
.AddItem "Male"
End With
End Sub
Sub Department()
With ActiveDocument.ComboBox3
.Clear
.AddItem "2nd Shift Assembly"
.AddItem "2nd Shift Mass Finish"
.AddItem "2nd Shift Polishing"
.AddItem "2nd Shift QA"
.AddItem "2nd Shift Ring Cell"
.AddItem "2nd Shift Stamp & Strike"
.AddItem "2nd Shift Tooling"
.AddItem "2nd Shift Waxing"
.AddItem "Assembly"
.AddItem "Casting"
.AddItem "DBY"
.AddItem "Engineering"
.AddItem "Facilities"
.AddItem "Inventory Control"
.AddItem "Mass Finish"
.AddItem "Polishing"
.AddItem "QA"
.AddItem "Ring Cell"
.AddItem "SDR"
.AddItem "Security"
.AddItem "Shipping & Receiving"
.AddItem "Stamp & Strike"
.AddItem "Studio"
.AddItem "Tooling"
.AddItem "Waxing/Molding"
.AddItem "Wrapping"
End With
End Sub
Any help greatly appreciated. Thank you.