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.
[blue]Option Explicit
Private MyLastTab As Integer
Private Sub Form_Activate()
InitLabels
End Sub
Private Sub Label1_Click(Index As Integer)
SSTab1.Tab = Index
SSTab1_Click MyLastTab
MyLastTab = Index
End Sub
Private Sub SSTab1_Click(PreviousTab As Integer)
Dim lp As Long
For lp = 0 To SSTab1.Tabs - 1
If lp = SSTab1.Tab Then Label1(lp).Font.Bold = True Else Label1(lp).Font.Bold = False
Next
End Sub
Public Sub InitLabels()
Dim lp As Long
Dim CurrentTab As Long
CurrentTab = SSTab1.Tab
For lp = 0 To SSTab1.Tabs - 1
SSTab1.Tab = lp
MoveLabels
Next
SSTab1.Tab = CurrentTab
SSTab1_Click MyLastTab
End Sub
Public Sub MoveLabels()
Dim lp As Long
For lp = 0 To SSTab1.Tabs - 1
If Label1(lp).Left < 0 Then Label1(lp).Left = Label1(lp).Left + 75000
Next
End Sub[/blue]