+ Reply to Thread
Results 1 to 3 of 3

Over 1000 Sheets in a workbook

Hybrid View

Guest Over 1000 Sheets in a workbook 02-24-2005, 12:06 AM
Guest Re: Over 1000 Sheets in a... 02-24-2005, 01:06 AM
Guest Re: Over 1000 Sheets in a... 02-24-2005, 01:06 PM
  1. #1
    TEB2
    Guest

    Over 1000 Sheets in a workbook

    I was given a workbook with over 1000 worksheets. How can I convert all
    these to their own workbook? I really don't want to do it manually!

  2. #2
    Tom Ogilvy
    Guest

    Re: Over 1000 Sheets in a workbook

    Sub Savetime()
    dim sh as Worksheet
    for each sh in workbooks("BigBook.xls").worksheets
    sh.copy
    Activeworkbook.SaveAs "C:\MyFolder\" & sh.name & ".xls"
    ActiveWorkbook.close Savechanges:=False
    Next
    end Sub

    --
    Regards,
    Tom Ogilvy

    "TEB2" <TEB2@discussions.microsoft.com> wrote in message
    news:A0AC369B-3605-4DC4-8966-FC855A06D8B6@microsoft.com...
    > I was given a workbook with over 1000 worksheets. How can I convert all
    > these to their own workbook? I really don't want to do it manually!




  3. #3
    Ron de Bruin
    Guest

    Re: Over 1000 Sheets in a workbook

    Another one that create a folder for the files
    http://www.rondebruin.nl/copy6.htm


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl



    "Tom Ogilvy" <twogilvy@msn.com> wrote in message news:uLMgcjiGFHA.2384@TK2MSFTNGP10.phx.gbl...
    > Sub Savetime()
    > dim sh as Worksheet
    > for each sh in workbooks("BigBook.xls").worksheets
    > sh.copy
    > Activeworkbook.SaveAs "C:\MyFolder\" & sh.name & ".xls"
    > ActiveWorkbook.close Savechanges:=False
    > Next
    > end Sub
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    > "TEB2" <TEB2@discussions.microsoft.com> wrote in message
    > news:A0AC369B-3605-4DC4-8966-FC855A06D8B6@microsoft.com...
    >> I was given a workbook with over 1000 worksheets. How can I convert all
    >> these to their own workbook? I really don't want to do it manually!

    >
    >




+ 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