S
StargateFanNotAtHome
I have this macro for sorting worksheets in alphanumerical order:
*********************************************
Public Sub Sort_WORKSHEET_TABS()
Dim iCount As Integer
Dim i As Integer
Dim j As Integer
On Error Resume Next
iCount = Sheets.Count
For i = 1 To iCount - 1
For j = i + 1 To iCount
If Sheets(j).Name < Sheets(i).Name Then
Sheets(j).Move before:=Sheets(i)
End If
Next j
Next i
End Sub
*********************************************
Is there any way to make sure that sheet #1 and #2 (sheet 1 called
"General Ledger", and sheet 2 called "PA") either stay as first and
second place or get put _back_ into 1st and 2nd places?
Thank you! D
*********************************************
Public Sub Sort_WORKSHEET_TABS()
Dim iCount As Integer
Dim i As Integer
Dim j As Integer
On Error Resume Next
iCount = Sheets.Count
For i = 1 To iCount - 1
For j = i + 1 To iCount
If Sheets(j).Name < Sheets(i).Name Then
Sheets(j).Move before:=Sheets(i)
End If
Next j
Next i
End Sub
*********************************************
Is there any way to make sure that sheet #1 and #2 (sheet 1 called
"General Ledger", and sheet 2 called "PA") either stay as first and
second place or get put _back_ into 1st and 2nd places?
Thank you! D