+ Reply to Thread
Results 1 to 2 of 2

Copy & Past to the last row of a certain column

  1. #1
    Forum Contributor
    Join Date
    08-01-2012
    Location
    rotterdam, holland
    MS-Off Ver
    Excel 2013
    Posts
    170

    Copy & Past to the last row of a certain column

    I want it to copy the data in sheet 'te' (all of it) and paste it in AJ261 (sheet TIMESPAN) below the other data. I want to use the last row thing.
    I made this

    Sub d()
    Set sh = Sheets("TIMESPAN")
    Set myRng = sh.Range("AJ:AL")
    Set sl = Sheets("te")

    Set myNewRng = sl.Cells(Cells.Rows.Count, 1).End(xlUp).Offset(1, 0)
    myRng.Copy
    myRng.PasteSpecial Paste:=xlPasteValues
    End Sub

    This one kinda works, i just need to paste it after the last data.
    anyone a solution? thanks!
    test - Copy.xlsm
    Last edited by IKZOUHETNIETWETEN; 05-03-2013 at 07:51 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy & Past to the last row of a certain column

    Hi,

    This seems to work:

    Please Login or Register  to view this content.
    Last edited by xladept; 05-03-2013 at 10:48 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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