+ Reply to Thread
Results 1 to 7 of 7

Copy specific range from the new existing Active Sheet and paste value to Master sheet.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Copy specific range from the new existing Active Sheet and paste value to Master sheet.

    Hey,

    in my Workbook I have "Master" sheet. I would like to have a macro that copies specific range (eg: A5:J5) in an Active Sheet (same workbook) and pastes its VALUE to "Master" sheet (each time in next row), eg starting in row 3. Each time I will have a new sheet there will be macro applied on for "adding value to Master sheet".

    Thank you for help.

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Copy specific range from the new existing Active Sheet and paste value to Master sheet

    Try this:

    Sub CopyData()
    Dim rw As Long
        With Sheets("Master")
            rw = .Range("A" & .Rows.Count).End(xlUp).Row + 1
            Range("A5:J5").Copy
            Sheets(.Name).Cells(rw, 1).PasteSpecial (xlPasteValues)
        End With
        Application.CutCopyMode = False
    End Sub
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Re: Copy specific range from the new existing Active Sheet and paste value to Master sheet

    Thank you for help!

    How could I define same operation but to copy in the range "A7:J26" from A7:J7 till the last full row in the range?

    Kindly,

  4. #4
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Copy specific range from the new existing Active Sheet and paste value to Master sheet

    I don't understand the question.

  5. #5
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Re: Copy specific range from the new existing Active Sheet and paste value to Master sheet

    Sorry.
    My active sheet will change row-wise, but same numbers of columns.
    Basicly I have to copy content as from specific "row" (eg. A5:J5) down till the last filled cell (sometimes it's gonna be A10:J0, sometimes A13:J13), so all the content from row eg. A5:J5 till A10:J10 if there is no input after.

    Bad explanation...

  6. #6
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Copy specific range from the new existing Active Sheet and paste value to Master sheet

    Ok. Hopefully I got the idea. If not, you might be able to figure out how to adjust.

    Sub CopyData()
    Dim MasterRw As Long, EndRw As Long
        EndRw = Range("A" & Rows.Count).End(xlUp).Row
        Range("A5:J" & EndRw).Copy
        With Sheets("Master")
            MasterRw = .Range("A" & .Rows.Count).End(xlUp).Row + 1
            Sheets(.Name).Cells(MasterRw, 1).PasteSpecial (xlPasteValues)
        End With
        Application.CutCopyMode = False
    End Sub

  7. #7
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Re: Copy specific range from the new existing Active Sheet and paste value to Master sheet

    Thank you.

    I was able to modify it for my needs.

+ 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 Cell Range From Previous Sheet and Paste to Active Sheet
    By jtal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2013, 03:26 PM
  2. Copy a row from master sheet and paste it to a specific worksheet based on tab name
    By obrie499 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2013, 10:45 AM
  3. Copy active row and paste to specific cells on different sheet
    By XxCMoneyxX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2013, 03:03 PM
  4. [SOLVED] Copy specific range from one sheet and paste to next available row of different sheet
    By koklok in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-28-2012, 07:27 PM
  5. [SOLVED] Copy from active sheet and paste into new sheet using info from cell in active
    By Ingve in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2006, 06:00 PM

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