+ Reply to Thread
Results 1 to 8 of 8

How to Arrange Worksheets in Custom Order

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2010
    Posts
    4

    How to Arrange Worksheets in Custom Order

    Hi all,I have a Excel file with almost 100 worksheets named randomly. ie. ABC123 ABC246 CDE246 CDE135...


    How to arrange these worksheets in a defined order ie. 1st Worksheet CDE135
    2nd Worksheet ABC123
    3rd Worksheet CDE246
    4th Worksheet ABC246....

    Thanks in advance for your help.

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: How to Arrange Worksheets in Custom Order

    see attched file steven.xlsm
    the FIRST SHEET (sheet1) in which the ranks of the four other worksheets are given as you want.

    the other sheets are in some orderl

    now run this macro and see whether you get what you want?

    Please Login or Register  to view this content.
    Last edited by venkat1926; 04-11-2013 at 05:31 AM.
    I am not an expert. better solutions may be available
    $$$$venkat1926$$$$@gmail.com

  3. #3
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: How to Arrange Worksheets in Custom Order

    apologise. forgot to attach the file
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: How to Arrange Worksheets in Custom Order

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-09-2013
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How to Arrange Worksheets in Custom Order

    Quote Originally Posted by venkat1926 View Post
    apologise. forgot to attach the file
    Dear venkat1926, thanks for your help! your code is exactly what I want, however, when I change the worksheets a bit, the macro doesn't work again.

    Please see attached file for your reference.

    stevenmod.xlsm

    Anyway, really thanks for your help

  6. #6
    Registered User
    Join Date
    04-09-2013
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How to Arrange Worksheets in Custom Order

    Quote Originally Posted by jindon View Post
    Please Login or Register  to view this content.
    Dear jindon, thanks for your code, but I prefer to list the order in a Worksheet instead of key in the array in the code because I have almost 100 worksheets in my file.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: How to Arrange Worksheets in Custom Order

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    04-09-2013
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How to Arrange Worksheets in Custom Order

    Quote Originally Posted by jindon View Post
    Please Login or Register  to view this content.
    Dear jindon, thanks! This work like a charm, you save my days! thanks a lot for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1