You need to put an Exit Sub before the second go to label. But, you should just lose goTo.VB Code:
Private Sub pro_Click() If pro.Caption = "Hide Progress Bar" Then ProgressBar1.Visible = False pro.Caption = "Show Progress Bar" ElseIf pro.Caption = "Show Progress Bar" Then ProgressBar1.Visible = True pro.Caption = "Hide Progress Bar" End If End Sub




Reply With Quote