Closed Thread
Results 1 to 3 of 3

Rearrange the worksheets in two workbooks

  1. #1
    Registered User
    Join Date
    04-19-2007
    Posts
    2

    Rearrange the worksheets in two workbooks

    Dear Friends

    I need to re-arrange the worksheets in a workbook.

    I have two workbooks, having same number of worksheets with same names, but they are placed in randomly.

    So I will take first Workbook as a reference and I need to change the places of worksheets in the second workbook as per the places of worksheets in the first workbook.

    Please drop few lines/ a code for this problem.

    Thank you in advance.

    Rgds

    Vishalkumar

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello VishalkumarT,

    Here is a macro to arrange the second workbook's worksheets the same as the first's. The macro should be placed in the first workbook. Copy the code, and after inserting a Standard VBA Module into your workbook, paste the code into it. Change the name of the second workbook in the code, currently "Book2.xls", to the name you will be using.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    VishalkumarT

    Please read forum rules below. Cross posting is not permitted. You have posted this question on two other forums

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

Closed 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