+ Reply to Thread
Results 1 to 7 of 7

Copy and paste dynamic range from two worksheets into one

  1. #1
    Registered User
    Join Date
    04-03-2010
    Location
    Orlando, FL
    MS-Off Ver
    Office 365
    Posts
    94

    Copy and paste dynamic range from two worksheets into one

    Hi All,

    I have two separate worksheets that have a dynmic range, and need to colsolidate them into one worksheet. What I wanted to do was to take the data from the worksheet PCR Summary, which has a fixed range of columns A:E, and rows starting at row 6 to ???, and the data from the worksheet Parts Summary, which has a fixed range of A:F, and rows starting at row 6 to ???. I wanted to find the valid data range in both of these ranges, and put them in the same worksheet called PCR Parts Summary, where the data for the PCR Summary is pasted in to the row starting at A4, and the data from the Parts Summary is pasted starting two rows below the last used row from the PCR Summary data.
    Thanks in advance, I'm relatively new to VBA and this one is beyond me!
    Last edited by wpryan; 04-18-2010 at 08:11 PM. Reason: it's solved

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Copy and paste dynamic range from two worksheets into one

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Copy and paste dynamic range from two worksheets into one

    Hi, Try this:-
    Please Login or Register  to view this content.
    Regards Mick
    Last edited by MickG; 04-04-2010 at 06:50 AM.

  4. #4
    Registered User
    Join Date
    04-03-2010
    Location
    Orlando, FL
    MS-Off Ver
    Office 365
    Posts
    94

    Re: Copy and paste dynamic range from two worksheets into one

    Hi Mick,
    The code seems to be working OK, except I just need the values from those cells. The conditional formatting is also being copied over. How can that be solved?

  5. #5
    Registered User
    Join Date
    04-03-2010
    Location
    Orlando, FL
    MS-Off Ver
    Office 365
    Posts
    94

    Re: Copy and paste dynamic range from two worksheets into one

    Hi Mick,

    the formatting is also being pasted. can it happen that only the values are copied and pasted?

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Copy and paste dynamic range from two worksheets into one

    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

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

  7. #7
    Registered User
    Join Date
    04-03-2010
    Location
    Orlando, FL
    MS-Off Ver
    Office 365
    Posts
    94

    Re: Copy and paste dynamic range from two worksheets into one

    Thanks all for your help, it's now solved.

+ 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