Using variables in a combobox

G

gravesen

HI I have a combobox that looks like this:

Private Sub UserForm_Initialize()
With cboProgram
.AddItem "This is the label1"
.AddItem "This is the label2"
.AddItem "This is the label3"
.AddItem "This is the label4"
End With
End Sub

I would like to insert this in the document but also add a comment t
this sentence when you roll over the sentence. If for example I choos
the first chooice the sentence This is the label1 is inserted. I woul
like to have a little comments to this one if I hold the mouse over th
sentence.

Any one have a good idea

Thanks a lot

Lars Gravese
 
W

Word Heretic

G'day gravesen <[email protected]>,

Where you do your InsertAfter, you can do something like this

MyRange.collapse wdcollapse end
MyRange.InsertAfter SomeControl.Value
MyRange.Comments.Add MyRange,SomeCommentText



Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


gravesen reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top