+ Reply to Thread
Results 1 to 8 of 8

Copy all sheets from one workbook to the end of another workbook

Hybrid View

cory0789 Copy all sheets from one... 01-09-2015, 11:52 PM
:) Sixthsense :) Re: Copy all sheets from one... 01-10-2015, 12:18 AM
cory0789 Re: Copy all sheets from one... 01-13-2015, 12:40 AM
HaHoBe Re: Copy all sheets from one... 01-13-2015, 12:48 AM
Norie Re: Copy all sheets from one... 01-13-2015, 12:45 AM
cory0789 Re: Copy all sheets from one... 01-13-2015, 10:23 PM
Norie Re: Copy all sheets from one... 01-14-2015, 04:09 AM
cory0789 Re: Copy all sheets from one... 01-14-2015, 08:13 PM
  1. #1
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Copy all sheets from one workbook to the end of another workbook

    Anyone have a macro to copy each sheet of a workbook to the end of a target workbook. Note the copy workbook is .xls the target workbook is .xlsm... Thanks for all help. The copy workbook can be .xlsm if needed no big deal I just need to copy all 40 sheets to another workbook.

    Thanks

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,789

    Re: Copy all sheets from one workbook to the end of another workbook

    Sub CopySheets()
    Dim Ws As Worksheet
    
    Application.ScreenUpdating = False
    
    With Workbooks("YourPasteWorkbookNameHere")
        For Each Ws In ThisWorkbook.Worksheets
            Ws.Copy After:=.Sheets(.Sheets.Count)
        Next Ws
    End With
    
    Application.ScreenUpdating = True
    
    End Sub


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Re: Copy all sheets from one workbook to the end of another workbook

    I get subscript out of range error...

    I also get a chart not fit for dimensions error or something like that...

    WHY!!!!! haha this is driving me crazy

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 365 on Win11 (365 on Win11 (desktop), 365 on Win11 (notebook)
    Posts
    8,206

    Re: Copy all sheets from one workbook to the end of another workbook

    Hi, cory0789,

    for the out of range error: both workbooks need to be open and try adding the extension
    With Workbooks("YourPasteWorkbookNameHere.xlsm")
    Ciao,
    Holger
    Last edited by HaHoBe; 01-13-2015 at 12:58 AM.
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

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

    Re: Copy all sheets from one workbook to the end of another workbook

    Do you have a chart sheet in the workbook you are copying from?
    If posting code please use code tags, see here.

  6. #6
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Re: Copy all sheets from one workbook to the end of another workbook

    Yes the sheets I am copying have charts several of them do!!! this is why I am getting the error but how do I fix it??? I dont understand why it wont just copy the sheet over even if it does have the charts...???

    Thanks for all the help

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

    Re: Copy all sheets from one workbook to the end of another workbook

    I can only think there is some sort of compatibility issue involving the chart sheets.

    If you save the source workbook as xlsm do you lose anything?

  8. #8
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Re: Copy all sheets from one workbook to the end of another workbook

    nope but it still wont transfer over... there has to be a trick to it.

+ 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. Copy 2 sheets from a open workbook and paste to a closed workbook
    By grimston in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-27-2012, 03:27 PM
  2. Replies: 4
    Last Post: 09-15-2012, 02:18 PM
  3. [SOLVED] Copy All Sheets From Each Workbook in Folder to a Single Sheet in New Workbook
    By DHartwig35805 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2012, 03:53 PM
  4. Automatically Copy sheets in one workbook to create sheets in a new workbook..
    By leebarratt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-13-2011, 03:14 AM
  5. Replies: 0
    Last Post: 08-11-2011, 01:23 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