Excel button to a sheet
Solved
hkahil
Posted messages
243
Status
Member
-
Kjop -
Kjop -
Hello
Can someone help me create a button in Excel that I can click to go to a sheet?
And a small other question, how do I create a text box + a validate button to enter a value into a cell of a sheet? Thank you.
Can someone help me create a button in Excel that I can click to go to a sheet?
And a small other question, how do I create a text box + a validate button to enter a value into a cell of a sheet? Thank you.
12 answers
-
Hello,
In Excel, display your controls toolbar (view/toolbars/controls).- Click on the "command button" icon.
- Draw the button in the desired location.
- Right-click on the button/command button object/Edit ---> change the button text.
- Right-click on the button/Properties allows you to access a lot of little things like color (Backcolor), font, etc...
- Double-click on the button, a window (VBA) opens with the following text:
Private Sub CommandButton1_Click() End Sub
write between these 2 lines:Sheets("sheet name").selectlike this:Private Sub CommandButton1_Click() Sheets("sheet name").select End Sub
In the controls toolbar, click on the icon: "disable design mode"
and there you go