How do you print out the text from a combo box without printing the box itself? Thanks, Seth
Just use the Text property of the combo box. For example, to display the contents of the text portion of the combo box in a message box, you can use: Msgbox Combo1.Text Is that what you're looking for? If not, re-post and we'll try again.
"It's cold gin time again ..." Check out my website here.
If you want the total contents, do this: Code: Dim intIndex As Integer For intIndex = 0 To Combo1.ListCount - 1 Debug.Print Combo1.List(intIndex) Next
Dim intIndex As Integer For intIndex = 0 To Combo1.ListCount - 1 Debug.Print Combo1.List(intIndex) Next
Tips, Examples & Tutorials: A valuable forum tool • Generate unique TreeView keys • TreeView with "open" and "closed folder" icons • Time code using GetTickCount • How to trap the Tab key • Scroll a form • NumberBox ActiveX control • Color a ListView row • An InputBox form • How to use SaveSetting and GetSetting • A program registration scheme • Spellcheck a Textbox • Resize controls • Open Windows Explorer at Last Visited Path • A Blackjack Game • Count lines of code • Private Message Viewer • Copy/Paste VB Code • Paste VB Code Add-In • Insert Procedure Names Add-In • A calculator for the game of Spider • My review of REALbasic 2008 • VB6 Debug Tutorial • Picture/Video Viewer • VBF Photo Contest Winners 2009 - 2016
Forum Rules