+ Reply to Thread
Results 1 to 11 of 11

select all sheets baring one sheet

  1. #1
    Forum Contributor
    Join Date
    01-16-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    136

    select all sheets baring one sheet

    Hi I have a workbook that contains around 50 worksheets I want to select all of them baring one sheet "INPUT" and copy them to a new sheet. My code is below but it does not work I think this is because their are hidden sheets that I dont want to copy as well.

    Please Login or Register  to view this content.
    How can the above code be edited?
    Last edited by alansidman; 11-19-2013 at 03:43 PM. Reason: code tags added

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: select all sheets baring one sheet

    Please use code tags when posting.

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-16-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    136

    Re: select all sheets baring one sheet

    cheers

    I need all the selected sheets to be copied to a new workbook. Do you know how I would do this.

    JB

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: select all sheets baring one sheet

    Do you want the new workbook created by the macro or do you already have one?

  5. #5
    Forum Contributor
    Join Date
    01-16-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    136

    Re: select all sheets baring one sheet

    Created by the macro

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: select all sheets baring one sheet

    Maybe:

    Please Login or Register  to view this content.

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

    Re: select all sheets baring one sheet

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

  8. #8
    Forum Contributor
    Join Date
    01-16-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    136

    Re: select all sheets baring one sheet

    data sheet.xlsm

    Hi
    I've tried your solution but the sheets don't copy across.

    Any ideas please see attached.

    JB

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: select all sheets baring one sheet

    Maybe:

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    01-16-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    136

    Re: select all sheets baring one sheet

    thanks for your help

  11. #11
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: select all sheets baring one sheet

    You're welcome. Hope it helped.

+ 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. Select random rows from 2 or 3 sheets and display them in new Sheet
    By bhunkri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2013, 03:46 PM
  2. Replies: 2
    Last Post: 06-28-2010, 05:26 PM
  3. adapt macro to select individual sheet rather than all sheets
    By mania112 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-14-2009, 10:18 AM
  4. copy select rows on 2 sheets to a 3rd sheet
    By thedeacon in forum Excel General
    Replies: 2
    Last Post: 03-26-2009, 02:29 PM
  5. Dialog Box to Select Sheets to Make Visible and Delete the Remaining Sheets
    By TEAM in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-23-2005, 04:59 PM

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