*dear group,*

*please provide the vba macro for sheet names having alphanumerics  then it
wont sort asc or dsc*


*suppose for example one workbook having 23 worksheets *

*sheet1 **sheet2 **sheet3 **sheet4 **sheet5 **sheet6 **sheet7 **sheet8 *
*sheet9 **sheet10 **sheet111 **sheet12 **sheet13 **sheet14 **sheet15 *
*sheet16 **sheet17 **sheet18 **sheet19 **sheet20 **sheet21 **sheet22 *
*sheet23*

*in this criteria below macro wasnt work please provide the solution for
alphanumeric sheets sorting.....*










*Sub sortworksheetsnew()    Dim N      As Integer     Dim M      As
Integer    Dim FirstWSToSort As Integer    Dim LastWSToSort As Integer
Dim SortDescending As Boolean     SortDescending = False    FirstWSToSort =
1    LastWSToSort =
ActiveWorkbook.Worksheets.CountApplication.ScreenUpdating = False
InitialSheet = ActiveSheet.Name    For M = FirstWSToSort To LastWSToSort
    For N = M To LastWSToSort            If SortDescending = True Then
            If UCase(Worksheets(N).Name) > _
 UCase(Worksheets(M).Name) Then                    Worksheets(N).Move
Before:=Worksheets(M)                 End If            Else
If UCase(Worksheets(N).Name) < _
 UCase(Worksheets(M).Name) Then
ActiveWorkbook.Worksheets(N).Move Before:=ActiveWorkbook.Worksheets(M)
            End If            End If        Next N    Next
MApplication.ScreenUpdating = True Sheets(InitialSheet).SelectEnd Sub*






*Thanks & Regards´¨)  ¸ •´ ¸.•*´¨)   ¸.•*¨) (¸.•´      (¸.•*
♥♥♥...♪♪♪....RenukaChari. Kasee...♥♥♥...♪♪♪*

*P Let us do our best to save nature, save water, plant trees, protect
greenery, keep our surroundings clean, reduce usage of plastics, and use
renewable energy sources.*

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to