Results 1 to 9 of 9

Copy Range of Cells from One Worksheet to Another Worksheet

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-20-2011
    Location
    New York, New York
    MS-Off Ver
    Excel 2010
    Posts
    160

    Copy Range of Cells from One Worksheet to Another Worksheet

    Hello Everyone,

    KEY INFORMATION that will be relevant to the VBA code:

    - I have 4 worksheets in the workbook “PivotTableReport.xlsm” and these are the names of the worksheets:

    1. rptTune (Data in Cells should be PASTED to this worksheet)
    2. rptNoTune (Data in Cells should be COPIED from this worksheet)
    3. AFTER MACRO in rptTune (What “rptTune” worksheet should look like after the Macro is executed)
    4. Data Feeding Pivot Tables (The data feeding worksheets “rptTune” and “rptNoTune”)

    An EXPLANATION of what I am looking to do and I attached a workbook along with post by the name of “PivotTableReport.xlsm”:

    I want to copy cells that contain data from the “rptNoTune” worksheet and paste them on to a specific location on the “rptTune” worksheet . I want to copy all the cells that come AFTER the SUBTOTAL ROW “RT Total” under the PIVOT FIELD “Make” in the “rptNoTune” worksheet and PASTE them AFTER the SUBTOTAL ROW “RT Total” under the PIVOT FIELD “Make” in the “rptTune” worksheet. Since the Pivot Tables can expand and contract with data rows, it is KEY that the cells being copied always come after the SUBTOTAL ROW “RT Total” or the last SUBTOTAL ROW under the PIVOT FIELD “Make” in the “rptNoTune” worksheet.

    The worksheet “AFTER MACRO in rptTune” provides a VISUAL of what the “rptTune” worksheet should look like after the Macro has been executed.

    Note: When copying cells from the “rptNoTune” worksheet, I really don’t care if the cells being copied extend all the way to the last row of the worksheet as oppose to the last row that contains data. Whatever is easier to code is fine by me.

    Thanks in Advance!
    Attached Files Attached Files
    Last edited by boldcode; 08-25-2011 at 04:05 PM. Reason: Solved by tlafferty

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