Reorder Tabs

rjbinney

Active Member
Joined
Dec 20, 2010
Messages
279
Office Version
  1. 365
Platform
  1. Windows
Dear Internet:

I have a worksheet with about 48 tabs. Every so often I need to copy a tab and move it to the end of the worksheet. I know this is lame and lazy, but I get tired of scrolling down to "Move to End".

It would be easier to just add the new worksheet to the BEGINNING of the file. That would mean, though, that I would need to re-sort each and every tab, in backwards order.

I've found VBA to rearrange alphabetically. My tabs are not named alphabetically.

Any thoughts?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
If you just want to reverse the sheets maybe try the code below

VBA Code:
Sub ReverseSheets()
    Dim ShtCnt As Long, i As Long
    ShtCnt = ActiveWorkbook.Sheets.Count
    For i = 1 To ShtCnt - 1
        Sheets(1).Move After:=Sheets(ShtCnt - i + 1)
    Next
End Sub
 
Upvote 0
Solution

Forum statistics

Threads
1,216,082
Messages
6,128,700
Members
449,464
Latest member
againofsoul

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top