Hi folks
I have a ListBox on a Userform, populated wit lot of names, adresses aso.
User have to find wanted name and then click on it and selection values writes to sheet
Problem is that when i open Userform, the already selected item is writed to sheet
even before user find and click wanted name.
Hav do i prevent this auto-selection when open ?
Private Sub ListBox1_Click()
ActiveCell = Sheets("Personelliste").Cells(Me.ListBox1.ListIndex + 3, 2)
ActiveCell.Offset(1).Select
If CheckBox1 = True Then Unload Me
End Sub
thanks in advance
I have a ListBox on a Userform, populated wit lot of names, adresses aso.
User have to find wanted name and then click on it and selection values writes to sheet
Problem is that when i open Userform, the already selected item is writed to sheet
even before user find and click wanted name.
Hav do i prevent this auto-selection when open ?
Private Sub ListBox1_Click()
ActiveCell = Sheets("Personelliste").Cells(Me.ListBox1.ListIndex + 3, 2)
ActiveCell.Offset(1).Select
If CheckBox1 = True Then Unload Me
End Sub
thanks in advance