Hi experts im giveing up, ned help on this one 
Got a Userform width a ListBox
ListBox1 is populated width Sheet names (6) Ark1,Ark2,Ark3,Ark4,Ark5 and Ark6
In the ListBox1 i check out which Sheet to select
Trouble is that the code below not only select my shoice in ListBox1 but also
the sheet that was active when i started up Userform
eg.:
Sheet Ark1 is active.
Now i run code and select Ark2 and Ark4 in the Listbox
But when i finish Sheet "Ark1 is still selected together width Ark2 and Ark4
How do i prevent sheet "Ark1" been selcted too ????
eg.:
If i select sheet Ark3 and run code and select Ark1 and Ark5 in ListBox1
then its ok only Ark1 and Ark5 is selected !!!
Private Sub UserForm_Click()
Dim t As Integer
Dim flag As Boolean
flag = True
For t = 0 To Me.ListBox1.ListCount - 1
If Me.ListBox1.Selected(t) = True Then Sheets(Me.ListBox1.List(t)).Select flag
flag = False
Next
End Sub
Thanks in advance
Got a Userform width a ListBox
ListBox1 is populated width Sheet names (6) Ark1,Ark2,Ark3,Ark4,Ark5 and Ark6
In the ListBox1 i check out which Sheet to select
Trouble is that the code below not only select my shoice in ListBox1 but also
the sheet that was active when i started up Userform
eg.:
Sheet Ark1 is active.
Now i run code and select Ark2 and Ark4 in the Listbox
But when i finish Sheet "Ark1 is still selected together width Ark2 and Ark4
How do i prevent sheet "Ark1" been selcted too ????
eg.:
If i select sheet Ark3 and run code and select Ark1 and Ark5 in ListBox1
then its ok only Ark1 and Ark5 is selected !!!
Private Sub UserForm_Click()
Dim t As Integer
Dim flag As Boolean
flag = True
For t = 0 To Me.ListBox1.ListCount - 1
If Me.ListBox1.Selected(t) = True Then Sheets(Me.ListBox1.List(t)).Select flag
flag = False
Next
End Sub
Thanks in advance