+ Reply to Thread
Results 1 to 3 of 3

Macro to copy the data from all of the sheets in one workbook over to one sheet in another

Hybrid View

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    7

    Macro to copy the data from all of the sheets in one workbook over to one sheet in another

    Good evening all,

    I asked a similar question before, and closed the thread, but my computer just doesn't have the horsepower to run all of the sheets and the formulas and put them together on one sheet in the same workbook.

    I was wondering if it would be possible to take the identically arranged sheets from one book and paste the VALUES over to One page in another book.

    I'm guessing you'd need to know the directory of the workbook and the title?

    Below is the macro i run to compile in to one page in same workbook: (Summary3 is an arbitrary name for the new page, HEADERS is the name of the page that holds the headers for all of the categories, 2014 URL, RAP and DB_Template are the three sheets that I don't want to copy in to this new page)

    The headers are in each sheet from B2:DL2 and the data would be from B3:DL75.

    I am looking for an update to the following macro that would paste all of the VALUES from each of these sheets in to a new workbook on a single page.

    Any help from you experts would be fascinating.

    Sub CopyAll()
    Dim ws As Worksheet
    Sheets.Add.Name = "Summary3"
    Sheets("Summary3").rows(1).value = Sheets("Headers").rows(1).value
    For Each ws In ActiveWorkbook.Worksheets
    ws.Activate
    If ws.Name <> "2014 URL" And ws.Name <> "RAP" And ws.Name <> "DB_Template" And ws.Name <> "Summary" Then
    Range("B2:DL75").Copy Sheets("Summary3").Range("B" & Rows.count).End(3)(2)
    End If
    Next ws
    End Sub

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Macro to copy the data from all of the sheets in one workbook over to one sheet in ano

    Welcome to the forum.

    We'd like to help you but first..

    Pls take some minutes to read forum rules and specially-in this case- rule#3 and add code tags around your code.
    Then anyone will be able to help you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    02-25-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Macro to copy the data from all of the sheets in one workbook over to one sheet in ano

    I'm sorry.

    I broke the rules.

    Here's the code I use originally-- the explanation is below:

    Sub CopyAll()
    Dim ws As Worksheet
    Sheets.Add.Name = "Summary3"
    Sheets("Summary3").rows(1).value = Sheets("Headers").rows(1).value
    For Each ws In ActiveWorkbook.Worksheets
    ws.Activate
    If ws.Name <> "2014 URL" And ws.Name <> "RAP" And ws.Name <> "DB_Template" And ws.Name <> "Summary" Then
    Range("B2:DL75").Copy Sheets("Summary3").Range("B" & Rows.count).End(3)(2)
    End If
    Next ws
    End Sub



    Quote Originally Posted by amweisberg View Post
    Good evening all,

    I asked a similar question before, and closed the thread, but my computer just doesn't have the horsepower to run all of the sheets and the formulas and put them together on one sheet in the same workbook.

    I was wondering if it would be possible to take the identically arranged sheets from one book and paste the VALUES over to One page in another book.

    I'm guessing you'd need to know the directory of the workbook and the title?

    Below is the macro i run to compile in to one page in same workbook: (Summary3 is an arbitrary name for the new page, HEADERS is the name of the page that holds the headers for all of the categories, 2014 URL, RAP and DB_Template are the three sheets that I don't want to copy in to this new page)

    The headers are in each sheet from B2:DL2 and the data would be from B3:DL75.

    I am looking for an update to the following macro that would paste all of the VALUES from each of these sheets in to a new workbook on a single page.

    Any help from you experts would be fascinating.

    Sub CopyAll()
    Dim ws As Worksheet
    Sheets.Add.Name = "Summary3"
    Sheets("Summary3").rows(1).value = Sheets("Headers").rows(1).value
    For Each ws In ActiveWorkbook.Worksheets
    ws.Activate
    If ws.Name <> "2014 URL" And ws.Name <> "RAP" And ws.Name <> "DB_Template" And ws.Name <> "Summary" Then
    Range("B2:DL75").Copy Sheets("Summary3").Range("B" & Rows.count).End(3)(2)
    End If
    Next ws
    End Sub

+ 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. Replies: 0
    Last Post: 08-11-2011, 01:23 AM
  2. Macro to copy an area of one sheet to all sheets within workbook
    By burlywood66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2010, 04:01 PM
  3. [SOLVED] copy data in one sheet to multiple sheets in same workbook
    By Alan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  4. copy data in one sheet to multiple sheets in same workbook
    By BrianMultiLanguage in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. [SOLVED] copy data in one sheet to multiple sheets in same workbook
    By BrianMultiLanguage in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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