S
scrubgrub
I'm only mildly familiar with VBA so forgive me, I've scoured the
internet trying to figure this out and have figured out how to build
what I need, but I cannot figure out the code to save the information
selected . . . so store the selections. Can anyone help?
Here's my code as it stands now:
Sub AutoNew()
FillCombo
FillCombo2
FillCombo3
FillCombo4
FillCombo5
End Sub
Sub AutoOpen()
FillCombo
FillCombo2
FillCombo3
FillCombo4
FillCombo5
End Sub
Private Sub FillCombo()
Dim oCB As MSForms.ComboBox
Set oCB = ActiveDocument.ComboBox1
With oCB
.Clear
.AddItem " "
.AddItem "Does Not Meet"
.AddItem "Marginal"
.AddItem "Meets"
.AddItem "Exceeds"
.ListIndex = 0
End With
Set oCB = Nothing
End Sub
Private Sub FillCombo2()
Dim oCB As MSForms.ComboBox
Set oCB = ActiveDocument.ComboBox11
With oCB
.Clear
.AddItem " "
.AddItem "Does Not Meet"
.AddItem "Marginal"
.AddItem "Meets"
.AddItem "Exceeds"
.ListIndex = 0
End With
Set oCB = Nothing
End Sub
Private Sub FillCombo3()
Dim oCB As MSForms.ComboBox
Set oCB = ActiveDocument.ComboBox111
With oCB
.Clear
.AddItem " "
.AddItem "Does Not Meet"
.AddItem "Marginal"
.AddItem "Meets"
.AddItem "Exceeds"
.ListIndex = 0
End With
Set oCB = Nothing
End Sub
Private Sub FillCombo4()
Dim oCB As MSForms.ComboBox
Set oCB = ActiveDocument.ComboBox112
With oCB
.Clear
.AddItem " "
.AddItem "Does Not Meet"
.AddItem "Marginal"
.AddItem "Meets"
.AddItem "Exceeds"
.ListIndex = 0
End With
Set oCB = Nothing
End Sub
Private Sub FillCombo5()
Dim oCB As MSForms.ComboBox
Set oCB = ActiveDocument.ComboBox113
With oCB
.Clear
.AddItem " "
.AddItem "Does Not Meet"
.AddItem "Marginal"
.AddItem "Meets"
.AddItem "Exceeds"
.ListIndex = 0
End With
Set oCB = Nothing
End Sub
internet trying to figure this out and have figured out how to build
what I need, but I cannot figure out the code to save the information
selected . . . so store the selections. Can anyone help?
Here's my code as it stands now:
Sub AutoNew()
FillCombo
FillCombo2
FillCombo3
FillCombo4
FillCombo5
End Sub
Sub AutoOpen()
FillCombo
FillCombo2
FillCombo3
FillCombo4
FillCombo5
End Sub
Private Sub FillCombo()
Dim oCB As MSForms.ComboBox
Set oCB = ActiveDocument.ComboBox1
With oCB
.Clear
.AddItem " "
.AddItem "Does Not Meet"
.AddItem "Marginal"
.AddItem "Meets"
.AddItem "Exceeds"
.ListIndex = 0
End With
Set oCB = Nothing
End Sub
Private Sub FillCombo2()
Dim oCB As MSForms.ComboBox
Set oCB = ActiveDocument.ComboBox11
With oCB
.Clear
.AddItem " "
.AddItem "Does Not Meet"
.AddItem "Marginal"
.AddItem "Meets"
.AddItem "Exceeds"
.ListIndex = 0
End With
Set oCB = Nothing
End Sub
Private Sub FillCombo3()
Dim oCB As MSForms.ComboBox
Set oCB = ActiveDocument.ComboBox111
With oCB
.Clear
.AddItem " "
.AddItem "Does Not Meet"
.AddItem "Marginal"
.AddItem "Meets"
.AddItem "Exceeds"
.ListIndex = 0
End With
Set oCB = Nothing
End Sub
Private Sub FillCombo4()
Dim oCB As MSForms.ComboBox
Set oCB = ActiveDocument.ComboBox112
With oCB
.Clear
.AddItem " "
.AddItem "Does Not Meet"
.AddItem "Marginal"
.AddItem "Meets"
.AddItem "Exceeds"
.ListIndex = 0
End With
Set oCB = Nothing
End Sub
Private Sub FillCombo5()
Dim oCB As MSForms.ComboBox
Set oCB = ActiveDocument.ComboBox113
With oCB
.Clear
.AddItem " "
.AddItem "Does Not Meet"
.AddItem "Marginal"
.AddItem "Meets"
.AddItem "Exceeds"
.ListIndex = 0
End With
Set oCB = Nothing
End Sub