ricardo9316
New Member
- Joined
- Apr 17, 2014
- Messages
- 22
Is it possible to have a button on a worksheet do different things on its first click to a second click?
For example, I currently have a button that unhides tabs in a worksheet and I would like the tabs to be hidden again if clicked twice, so like a toggle button? My code so far is as follows:
Sub UnhideSheets()
Sheets("Monique").Visible = True
End Sub
Please can anyone help, or would I need a second button to hide the rows again?
Many thanks for taking the time to read my post and any help/guidance would be most appreciated.
For example, I currently have a button that unhides tabs in a worksheet and I would like the tabs to be hidden again if clicked twice, so like a toggle button? My code so far is as follows:
Sub UnhideSheets()
Sheets("Monique").Visible = True
End Sub
Please can anyone help, or would I need a second button to hide the rows again?
Many thanks for taking the time to read my post and any help/guidance would be most appreciated.