What is the VBA code to select last sheet in workbook

What is the VBA code to select last sheet in workbook

It is possible to select the last sheet of the workbook in Microsoft Excel even if you do not remember the sheet name, or if you don't want the selection to be reliant on the sheet name, and adapt to any changes to the sheets. Here is how you can do it.

To access the last sheet of the workbook without using the name of the sheet, use of this command:

Sheets(Sheets.Count).Select

Need more help with Excel? Check out our forum!