Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) Then
'Do something here
End If
Next i
Private Sub ListBox1_Change()
Dim i As Long
With ListBox1
For i = 0 To .ListCount - 1
Me.Controls("Label" & i).Visible = .Selected(i)
Next i
End With
End Sub
Private Sub ListBox1_Change()
Dim i As Long
With ListBox1
For i = 0 To .ListCount - 1
Me.OLEObjects("Label" & i).Visible = .Selected(i)
Next i
End With
End Sub
Private Sub ListBox2_Change()
Dim i As Long
On Error Resume Next
With ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) Then
Worksheets(.List(i)).Visible = xlSheetVisible
Else
Worksheets(.List(i)).Visible = xlSheetHidden
End If
Next i
End With
End Sub