+ Reply to Thread
Results 1 to 3 of 3

Macro to Copy range from multiple sheets and paste in new Workbook

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    Fayetteville, AR
    MS-Off Ver
    Excel 2010
    Posts
    12

    Macro to Copy range from multiple sheets and paste in new Workbook

    I have a macro that takes info/data from multiple sheets in the Basin workbook and summarizes it into the Median Database workbook. I need to copy the values in range B5:EM5 in every sheet (each sheet name is site #) in the Basin workbook and paste that range into the median database workbook row with the corresponding site.

    Here is what I have so far
    Please Login or Register  to view this content.
    I have figured out how to grab the sheet name and insert it in the median database. The problem is the copy/paste of the range in each sheet. The macro locks up every time.

    Any help is greatly appreciated!!
    Attached Files Attached Files
    Last edited by cameron.beyers; 08-03-2012 at 01:10 PM. Reason: Solved

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro to Copy range from multiple sheets and paste in new Workbook

    You will need to explain some more. What data goes where?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-29-2012
    Location
    Fayetteville, AR
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Macro to Copy range from multiple sheets and paste in new Workbook

    Sorry if I was unclear, but I figured it out last night

    Here is the updated code for the section I was struggling on.

    Please Login or Register  to view this content.
    Thanks!
    Last edited by cameron.beyers; 08-03-2012 at 01:10 PM.

+ 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