+ Reply to Thread
Results 1 to 11 of 11

Copy specific range from one sheet and paste to next available row of different sheet

  1. #1
    Registered User
    Join Date
    10-08-2008
    Location
    Hallandale
    Posts
    44

    Copy specific range from one sheet and paste to next available row of different sheet

    I would appreciate if someone can help me figure out a macro that will copy range (A3:T112) from "Step 1" sheet to next available row in "Step 2" sheet.
    Last edited by koklok; 01-28-2009 at 05:37 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello koklok,

    Here is the code...
    Please Login or Register  to view this content.
    Sincerely,
    Lieth Ross

  3. #3
    Registered User
    Join Date
    10-08-2008
    Location
    Hallandale
    Posts
    44
    Leith, unfortunately it's not working and I don't know what needs to be fixed.

    I'm attaching an example and more details if that helps.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello koklok,

    This macro will paste only the values from the Range("A3:H6") on "Step 1" to the next empty row on "Step 2". Copy this code and paste it into a VBA module in your project.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    10-08-2008
    Location
    Hallandale
    Posts
    44
    Leith,

    Thanks for your help but there seems to be a small glitch.
    When range A3:H6 is pasted to sheet(step2), my last row has underscore in the last row and that's good, but when I run a macro for the 2nd time range pastes over the underscore.
    So the bottom line is that every time I run a macro it pastes over the last row of previous macro.

    I appreciate your help

    Thanks

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello koklok,

    This should fix the problem...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  7. #7
    Registered User
    Join Date
    10-08-2008
    Location
    Hallandale
    Posts
    44

    Re: Copy specific range from one sheet and paste to next available row of different s

    Unfortunately it's still not working

  8. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Copy specific range from one sheet and paste to next available row of different s

    Hello koklok,

    When I run the macro below, the underscore is copied. Can you be more specific about the problem?
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  9. #9
    Registered User
    Join Date
    10-08-2008
    Location
    Hallandale
    Posts
    44

    Re: Copy specific range from one sheet and paste to next available row of different s

    Ok, Leith

    I see you made a little change and it's working now I appreciate your help.

    Thanks

  10. #10
    Registered User
    Join Date
    08-28-2012
    Location
    toronto
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Copy specific range from one sheet and paste to next available row of different sheet

    Capture.JPGHello Friends... I have similar problem where I need some help.
    I want to write a macro which would first autofilter based on "1" and than copy the specific range from one sheet and paste it to the next available row of a different sheet.
    I have written a very basic macro for it but what I was is a loop so it could perform the same fucntion for n number of time.

    I am putting down example of the data

    Please Login or Register  to view this content.
    Look forward to your reply.

    Sam
    Last edited by Cutter; 08-28-2012 at 07:24 PM. Reason: Added code tags

  11. #11
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Copy specific range from one sheet and paste to next available row of different sheet

    Hello sam_1981, and welcome to the forum.

    Unfortunately you have inadvertently broken one of the forum rules. Please read the following and make the necessary change. Thanks.

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

    When you start your own thread please use code tags on your code - click Forum Rules button @ top of page to see instructions in rule #3.

+ Reply to Thread

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