If Not mbEvents Then
With Sheets("WorkSheet")
For x = 0 To lbKlienti.ListCount - 1
If lbKlienti.Selected(x) = True Then
Range(Cells(1, (x * 4) + 5), Cells(1, (x * 4) + 9)).Columns.Hidden = False
Else
Range(Cells(1, (x * 4) + 5), Cells(1, (x * 4) + 9)).Columns.Hidden = True
End If
Next
End With
End If
[B3].End(xlToRight).Offset(0, 1).Columns.Hidden = True
End Sub
Nie je to síce zrejme striktne v duchu logiky, ale niekedy stačí použiť hrubú silu :)citovat