+ Reply to Thread
Results 1 to 5 of 5

How to save more than one but not all worksheets?

  1. #1
    Registered User
    Join Date
    05-20-2011
    Location
    Cobourg, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    5

    How to save more than one but not all worksheets?

    Hey there,

    Is it possible to write a macro that saves some, but not all of the worksheets in the workbook to a specified location? for example just save "Sheet1" and "Sheet2", but not "Sheet3"

    Is there any code that will allow you to do this easily?

    Thanks in advance for any replies!

    Kevin
    Last edited by ksagermann; 05-24-2011 at 12:06 PM.

  2. #2
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: How to save more than one but not all worksheets?

    This will export Sheet1 and Sheet2 and save them as Sheet1.xls and Sheet2.xls in the folder C:\Temp

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-20-2011
    Location
    Cobourg, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How to save more than one but not all worksheets?

    Is there a way that Sheet1 and Sheet2 can both be saved to the same workbook file and not as two separate files?
    Sorry for not being more clear in my first post!
    Thanks!

  4. #4
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: How to save more than one but not all worksheets?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-20-2011
    Location
    Cobourg, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How to save more than one but not all worksheets?

    thanks! exactly what i was looking for

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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