+ Reply to Thread
Results 1 to 2 of 2

Sort Worksheet in a Workbook based on another Workbook

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    5

    Sort Worksheet in a Workbook based on another Workbook

    Hello Guys,

    I would highly appreciate your help for this problem.

    Does anybody have a code to sort the worksheets in a new workbook based on the original workbook? Below is the code I am using to duplicate Worksheets from the original workbook. However, new tabs are sorted alphabetically. I was trying different things but nothing worked so far.

    Any idea? Is it possible to add something to the code in order to sort the tabs or do I need to create a new macro?

    Thank you in advance for you help!

    Regards

    Ben

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    08-27-2012
    Location
    Saldanha, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: Sort Worksheet in a Workbook based on another Workbook

    Mr Ben again...not happy with my solution he wants it sorted as well!!

    Dim the following variables:
    Please Login or Register  to view this content.
    insert the following code inbetween the last and second last line of your above sample code (between Next and End If)

    Please Login or Register  to view this content.
    It's probably not the most elegant programming but it should get the job done

+ 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