Dim a, b, c, p As Integer On Error GoTo Gagal c = Sheets.Count For a = 2 To c p = a For b = a - 1 To 1 Step -1 If Sheets(a).Name < Sheets(b).Name Then p = b End If Next If p <> a Then Sheets(a).Move Before:=Sheets(p) End If Next Sheets(1).Select Gagal:
Tidak ada komentar:
Posting Komentar