Using Command Buttons for Navigation in Excel

How to use command buttons on a splash screen in MS-Excel
How can I create buttons on a splash screen that take you to another sheet in the workbook? When I reach the next worksheet I do not wish to see the column and row header numbers and the horizontal and vertical scrollbars. How do I achieve this? How can I exit the workbook with a single click?

We use two command buttons with the following VBA code to solve this problem:

Private Sub CommandButton1_Click()
Sheets(“sheet2”).Select
With ActiveWindow
.DisplayHeadings = False
.DisplayHorizontalScrollBar = False
.DisplayVerticalScrollBar = False
End With
End Sub

Private Sub CommandButton2_Click()

‘if you don’t wish to receive a message to save the file use the code below

ThisWorkbook.Save=True

ThisWorkbook.Close

End Sub

You can also rename the command buttons appropriately by right-clicking on them and edting their properties.

Watch the video below to see how to use command buttons on a splash screen in MS-Excel


Leave a Reply

Your email address will not be published. Required fields are marked *