Do you know that you need to use the VBA editor in Excel to navigate your worksheets by using the command button, which is a content material management button? Content material controls are particular person controls that you may add and customise to be used in templates, types, and paperwork. So, people can create a hyperlink from the command button to a worksheet in your workbook. On this tutorial, we are going to clarify how to use the Command button to navigate between worksheets in Excel.

How to navigate between Excel worksheets using Command button

Observe the steps under to use the Command button to navigate between worksheets in Microsoft Excel.

  1. Insert Command button.
  2. Navigate to worksheet using Command button.
  3. Navigate to a hidden worksheet.

1] Insert Command button

Launch Microsoft Excel.

On the Developer tab, click on the Insert Management button within the Controls group and choose the Command button within the Lively X Controls part.

Then draw the Command button within the spreadsheet.

Now we wish to edit the Command button.

Proper-click the Command button, hover the cursor over Commend Button Object, and choose Edit from the menu.

2] Navigate to worksheet using Command button

As a result of the Design Mode is turned on, you may double-click on the command button to open the VBA Editor.

Within the VBA Editor window, sort the next:

ThisWorkbook.Sheets(“Sheet2”).Activate.

Then click on the Exit Design Mode button. See the photograph above.

Shut the VBA Editor window.

Now click on on the command button within the spreadsheet, and it’ll go to worksheet 2.

3] Navigate to a hidden worksheet

Disguise worksheet 2.

Be certain that the Design Mode is turned on. When it’s turned on, it’s highlighted.

Then double-click the command button to open the VBA Editor.

Within the VBA Editor window, sort the next:

ThisWorkbook.Sheets(“Sheet2”).Seen = True

ThisWorkbook.Sheets(“Sheet2”). Choose

Then click on the Exit Design Mode button. See the photograph above

Shut the VBA Editor window.

Now click on on the button within the spreadsheet, and it’ll go on worksheet 2, which will likely be now not be hidden.

How to swap between Worksheets in Excel

You may swap between Excel worksheets: using any certainly one of these strategies:

  1. Using keyboard shortcuts.
  2. Using the Watch Window.
  3. Go to any sheet with the Activate Sheet choice.
  4. Using the Title Field.
  5. Using the Go To dialog field.
  6. Using Hyperlinks.
  7. Using VBA Macro.

How do I navigate to one other sheet in Excel using the keyboard?

In Microsoft Excel, you need to use shortcut keys to navigate between Excel sheets on the keyboard. You should use the shortcut mixture keys Ctrl + Up or Ctrl + Down to transfer to the earlier or subsequent sheet within the workbook.

How do you navigate between worksheets in Excel?

In Microsoft Excel, there are a number of methods you may navigate between worksheets in Excel, similar to using shortcut keys, hyperlinks, using the VBA editor. The VBA Editor permits individuals to run applications in Excel to carry out instructions.

Which button needs to be clicked to run a command?

Upon getting inserted your command button, opened the VBA window, and written a code for the command button, it is best to click on the Run button. The Run button permits customers to run the codes within the VBA editor to make a command

How does a command button work?

A command button is a management button; customers can create a command button to set motion by using codes within the VBA Editor. On this tutorial, now we have defined how to use the command button in Excel.

READ: How to wrap textual content in Excel

We hope you perceive how to use the command button to navigate between worksheets in Microsoft Excel.



Source link

Share.
Leave A Reply

Exit mobile version