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
|