S
susiecc via OfficeKB.com
I have created a userform combox where a user enters several word selections
which will subsequently be inserted in various places in document text (i.e.
user makes a text selection and selects an entry in the combobox and inserts
the entry before and after the selection). I managed to set up a textbox
where the entries are typed in. On keyboard return, the entry populates the
combobox. This worked...kind of. Unfortunately, every time a word is typed
into the textbox and the return is hit, the first item in the combobox gets
inserted into text, even without selecting something in the combobox.
I have no idea how to stop it from doing this.
The second problems is that I want the text that is inserted to be red, but
the combobox entry itself needs to stay black. I have been unable to get only
the inserted text to change to red--it changes all of the selected text to
red.
Is there some way I can resolve these problems?
sue
which will subsequently be inserted in various places in document text (i.e.
user makes a text selection and selects an entry in the combobox and inserts
the entry before and after the selection). I managed to set up a textbox
where the entries are typed in. On keyboard return, the entry populates the
combobox. This worked...kind of. Unfortunately, every time a word is typed
into the textbox and the return is hit, the first item in the combobox gets
inserted into text, even without selecting something in the combobox.
I have no idea how to stop it from doing this.
The second problems is that I want the text that is inserted to be red, but
the combobox entry itself needs to stay black. I have been unable to get only
the inserted text to change to red--it changes all of the selected text to
red.
Is there some way I can resolve these problems?
sue