Hmmm... No still no luck! Doesn't like the .text after it. Sometimes makes me think I should go back to VB6, haha. Was like my second lanugage! This is the code for VB6, which works fine the only difference is that the 'i' was declare as a variant, but VB2005 wants it as a object, which didn't work so changed it to a Integer. Dim i As Variant For i = 0 To ListBoxUpgrade.ListCount - 1 If ListBoxUpgrade.Selected(i) Then LabelSum = LabelSum & Space(6) & ListBoxUpgrade.List(i, 3) & vbCrLf End If Next i
Do you have any more ideas or a better way to write the code?? Or go back to VB6... lol Thanks, Stefan.
"All answers have a question? All code has an end."