Hi
I'm new using the user forms so I have this procedure that hide / unhide to specific workshets...so I thought that if copy to the Private Sub of the ToggleButton will work the same...but it didn't...and here it is the code I used
Any idea how to get it, so that if I click the first time both worksheets will be hidden and in a second one visible
Thanks
I'm new using the user forms so I have this procedure that hide / unhide to specific workshets...so I thought that if copy to the Private Sub of the ToggleButton will work the same...but it didn't...and here it is the code I used
Code:
Private Sub ToggleButton1_Click()
Dim ws As Worksheet
For Each ws In Sheets(Array("ICP account Express List", "ICP Participants"))
ws.Visible = (ws.Visible = False)
Next ws
End Sub
Any idea how to get it, so that if I click the first time both worksheets will be hidden and in a second one visible
Thanks