Reorder Tabs

rjbinney

Active Member
Joined
Dec 20, 2010
Messages
294
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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
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,224,542
Messages
6,179,424
Members
452,914
Latest member
echoix

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