+ Reply to Thread
Results 1 to 5 of 5

Long Handed way of copy,pasting and saving worksheets

  1. #1
    Registered User
    Join Date
    03-13-2009
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    98

    Long Handed way of copy,pasting and saving worksheets

    My excel book contains 435(named 1,2,3,4,5,....435) worksheets as the one attached. I need to save these worksheets as separate workbooks in a designated folder after a simple copy pasting action.

    Stage 1: Create a copy of the worksheet in the same workbook
    Stage 2: Copy, and Paste Special-Values of the worksheet
    Stage 3: Delete Columns A-R [so that the format is as worksheet 1(2)]
    Stage 4: Save this worksheets as a separate workbook somewhere e.g H:\New Folder (2)\Excel Forum

    Then move onto next worksheet i.e 2 and repeat.
    The loop process needs to be from sheet 1-435.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Long Handed way of copy,pasting and saving worksheets

    What naming structure do you want to use for each workbook as it is saved? Use the sheetname?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Long Handed way of copy,pasting and saving worksheets

    Try this, it uses the worksheet name as the filename:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-13-2009
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    98

    Re: Long Handed way of copy,pasting and saving worksheets

    Thanks for the code. I have run it and when the code reaches Cells.Value=Cells.Value it generates an error, saying out of memory.

    I also need to run the code on specific sheets as I have other sheets that do not require copy pasting and saving.They are named as 1,2,3,4,5...all the way upto 435.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Long Handed way of copy,pasting and saving worksheets

    If you know the columns to utilize, you could fine tune that down a bit.
    Please Login or Register  to view this content.

+ 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