LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Display data in a combo box

Hi Oggy,

One final thing, then i promise to leave you alone, When i pull in the
address i get the carriage return characters, how do i get rid of them?


Try:

'=============
Private Sub CommandButton1_Click()
Dim SH As Worksheet
Dim destRng As Range

Set SH = ThisWorkbook.Sheets("Sheet1") '<<=== CHANGE

Set destRng = SH.Range("A" & Rows.Count).End(xlUp)(2)
With Me.ListBox1
destRng.Value = .List(.ListIndex, 0)
destRng(1, 2).Value = _
Replace(.List(.ListIndex, 1), Chr(13), "", 1)
destRng(1, 3).Value = _
Replace(.List(.ListIndex, 2), Chr(13), "", 1)
End With
End Sub
'<<=============



---
Regards,
Norman




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use Combo Box to Select Month to Display Data on Chart Carlee Charts and Charting in Excel 1 April 13th 07 07:18 PM
Combo Box Display bob leathers Excel Discussion (Misc queries) 5 February 10th 07 07:35 PM
Display info in Combo box'es [email protected] Excel Programming 2 November 20th 06 04:46 PM
Display value linked to Combo Box Selection Bill Excel Programming 4 April 25th 06 03:49 PM
Display values in combo box Tom Ogilvy Excel Programming 0 July 27th 04 05:50 PM


All times are GMT +1. The time now is 04:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"