+ Reply to Thread
Results 1 to 4 of 4

move sheets after specific sheet name

  1. #1
    Registered User
    Join Date
    06-21-2014
    Location
    Egypt
    MS-Off Ver
    MS 2010
    Posts
    72

    move sheets after specific sheet name

    Dear All,

    I want to move sheets after sheet name " summary " to a new work book, can any one help in such macro ?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: move sheets after specific sheet name

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    06-21-2014
    Location
    Egypt
    MS-Off Ver
    MS 2010
    Posts
    72

    Re: move sheets after specific sheet name

    There is a syntax error in
    for I = Sheets("Summary).Index To Sheets.Count

    and how this to export it to a new work book ?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: move sheets after specific sheet name

    That's just a typo and there's a couple of other errors (only just waking up).
    Please Login or Register  to view this content.
    How does it move the sheets to a new workbook?

    It copies them, and since there's no destination specified it copies them to a new workbook.

    If you actually want to move them change Copy to Move.

  5. #5
    Registered User
    Join Date
    06-21-2014
    Location
    Egypt
    MS-Off Ver
    MS 2010
    Posts
    72

    Re: move sheets after specific sheet name

    Great
    it is working , now , if i want to delete all sheet after summary in the original workbook ? can i use the same code and change it to delete ?

  6. #6
    Registered User
    Join Date
    06-21-2014
    Location
    Egypt
    MS-Off Ver
    MS 2010
    Posts
    72

    Re: move sheets after specific sheet name

    Great
    it is working , now , if i want to delete all sheet after summary in the original workbook ? can i use the same code and change it to delete ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Move row data to a specific sheet if column contains specific word
    By Kennethc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2014, 06:55 PM
  2. [SOLVED] Trying to move specific range to a specific sheet based on data in certain column
    By cain2011 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-01-2013, 08:09 AM
  3. [SOLVED] Move rows of data from one sheet to another based on specific values of sheet
    By buntalan80 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-26-2013, 06:21 AM
  4. Help Needed! a macro to move specific data between sheets
    By queenieheart in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2012, 11:28 AM
  5. How Do I Move/Count specific Sheets using Wildcard Characters?
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-24-2011, 03:57 AM

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