+ Reply to Thread
Results 1 to 3 of 3

rearrange tabs based on order specified by list box

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    116

    rearrange tabs based on order specified by list box

    Hello all,

    --I have a macro that opens many excel spreadsheets and saves the first worksheet as a new tab in a "master" spreadsheet. The "master" spreadsheet then names each tab based on the question # found in each worksheet.

    So, my "master" worksheet has tabs named something like:

    q1 q2a q3 q5

    What I need to do is create a list box which lists out all of the tab names, allows me to choose the order that the tabs will appear, and then rearrange the tabs to reflect that order


    So, for the above, I need a list box which would display:
    q1
    q2a
    q3
    q5

    and would allow me to specify that the order I want to be:
    q5
    q2a
    q1
    q3
    (or whatever order I want)

    and then rearrange the tabs so they appear as:
    q5 q2a q1 q3


    The number of tabs and the names of the tabs will vary.

    Thanks for the help!

  2. #2
    Forum Contributor
    Join Date
    10-19-2012
    Location
    Omaha, Nebraska USA
    MS-Off Ver
    Excel 2010
    Posts
    249

    Re: rearrange tabs based on order specified by list box

    Hi McDermott2,

    I have attached a file that has a macro that reorders the worksheet tabs based on user choices from a user form. Hit "<CTRL> a" to run the macro. You can view it by hitting "<ALT> <F11>". Hopefully this helps.

    Thanks,

    Daniel
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    116

    Re: rearrange tabs based on order specified by list box

    Thank you very much, djbomaha! Works like a charm.

+ 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