Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transferring multiple selections from a listbox into word 1

Status
Not open for further replies.

kimdinger

Technical User
Jun 22, 2000
1
US
I need some help....<br><br>I'm trying to transfer selections from a list box (multiple selection) into a bookmark in a word template.&nbsp;&nbsp;My problem is this: <br>&nbsp;&nbsp;when I do this, only the last selection chosen appears in the document.&nbsp;&nbsp;<br>&nbsp;&nbsp;How do I get all of the selections in the list box to appear in the document?<br><br>I appreciate any help I can get<br><br>Thanks!
 
to get selected value in multiple selection listbox is you have to check selected property for each listitem<br>for example<br><br>sub getList()<br>dim i as byte<br>For i = 0 to List1.ListCount-1<br>&nbsp;&nbsp;&nbsp;&nbsp;If List1.Selected(i)=True then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text1.text = text1.text & List1.List(i)<br>&nbsp;&nbsp;&nbsp;&nbsp;end if<br>Next<br>end sub<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top