M
mortalkris
I have created a combo box in a word template. The combo box functionality
seems to be working well. What I need to be able to do is cut and paste from
this form. When I do, the answers chosen in the combo box do not appear (for
example in notepad .txt).
What I need to do is have a combo box that allows a user to choose a choice
or just type text in that box. The user then needs to be able to cut and
paste parts of this form into a non word program (for example notepad). I
have not used VBA before and have simply used the following:
Private Sub Document_New()
Dim vColor, vColors
vColors = Array(" ", "green", "yellow", "red")
For Each vColor In vColors
ComboBox1.AddItem vColor
Next
ComboBox1.ListIndex = 0
End Sub
Before the combo box it says: Your favorite color is:
When I cut and paste I don't get "Your favorite color is green" but just
"Your favorite color is "
Please advise.
seems to be working well. What I need to be able to do is cut and paste from
this form. When I do, the answers chosen in the combo box do not appear (for
example in notepad .txt).
What I need to do is have a combo box that allows a user to choose a choice
or just type text in that box. The user then needs to be able to cut and
paste parts of this form into a non word program (for example notepad). I
have not used VBA before and have simply used the following:
Private Sub Document_New()
Dim vColor, vColors
vColors = Array(" ", "green", "yellow", "red")
For Each vColor In vColors
ComboBox1.AddItem vColor
Next
ComboBox1.ListIndex = 0
End Sub
Before the combo box it says: Your favorite color is:
When I cut and paste I don't get "Your favorite color is green" but just
"Your favorite color is "
Please advise.