Macro to go to the first or last sheet of an Excel Workbooks (Solved)

Macro to go to the first or last sheet of an Excel Workbooks (Solved)

Sub GotoFirstSheet()
On Error Resume Next
Sheets(1).Activate
End Sub

Sub GotoLastSheet()
On Error Resume Next
Sheets(Sheets.Count).Activate
End Sub

excel_vba_logo_white

Leave a Reply

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