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.
Dim i As Integer 'loop counter for storing to the array
Dim j As Integer 'loop counter for deleting every tag
Dim k As Integer 'loop counter for adding tags back to form
Dim AmountDeleted As Integer
Dim NextVal As Integer
If List1.SelCount > 0 Then
' store all unselected items in an array
For i = List1.ListCount - 1 To 0 Step -1
If List1.Selected(i) = False Then
DeletedTags(AmountDeleted) = List1.List(i)
AmountDeleted = AmountDeleted + 1
End If
Next i
' wipe out every tag the user has created
For j = Form1.Labels().Count - 1 To 10 Step -1
Unload Form1.Labels(Form1.Labels().Count - 1)
Next j
' add all the tags stored in the array back on to the form
For k = AmountDeleted - 1 To 0 Step -1
' get the next available array index (NextVal)
NextVal = Form1.Labels().Count
' Load Nextval
Load Form1.Labels(NextVal)
With Form1.Labels(NextVal)
.Visible = True
.Container = Form1.frameTags
.Top = Form1.Labels(NextVal - 1).Top + 360
.Left = 120
.Caption = DeletedTags(k)
.Width = 600
End With
Next k
End If
End Sub