Hi everyone,
I have a text box in a userform in Word where the person types in some information and then clicks an "add" button to insert the entry into a listbox. They keep doing this for as many entries they need.
Each one of these listbox entries will end up being a bullet point in the Word document once the OK button is pressed in the form. I have a point in the file that's marked with a DOCVARIABLE field where I want them to go but I'm not sure how I'd go about transferring the listbox values to the marked point and then have them all appear as bullets one underneath each other and taking on the style from the initial point.
I know how to do it if I'm transferring something from a textbox, ie.
.Variables("Name").Value = txtName.Text
...but something like this for the list box isn't working:
.Variables("Personal_Interest").Value = lstPersonal_Interest.Text
Would someone be able to tell me what the code would be?
Thanks very much.
I have a text box in a userform in Word where the person types in some information and then clicks an "add" button to insert the entry into a listbox. They keep doing this for as many entries they need.
Each one of these listbox entries will end up being a bullet point in the Word document once the OK button is pressed in the form. I have a point in the file that's marked with a DOCVARIABLE field where I want them to go but I'm not sure how I'd go about transferring the listbox values to the marked point and then have them all appear as bullets one underneath each other and taking on the style from the initial point.
I know how to do it if I'm transferring something from a textbox, ie.
.Variables("Name").Value = txtName.Text
...but something like this for the list box isn't working:
.Variables("Personal_Interest").Value = lstPersonal_Interest.Text
Would someone be able to tell me what the code would be?
Thanks very much.