+ Reply to Thread
Results 1 to 5 of 5

Find Last Row, Paste Data Last Row Plus two Rows

  1. #1
    Forum Contributor
    Join Date
    08-08-2015
    Location
    NJ
    MS-Off Ver
    2013
    Posts
    205

    Find Last Row, Paste Data Last Row Plus two Rows

    Hello, a quick last data row type question. Looking for assistance to find the last row of data to help pinpoint where I will then paste a "key" that will be located two rows after the last row of data, in column B.

    In the attached, I have a "key" that needs to be pasted to the bottom of a (dynamic) list, two rows after the list ends, in column B. What is the best way to find the last row, add two, then copy/paste the key (from the second tab) at the bottom of the list?

    Thanks again for any assistance,
    Sheryl
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Find Last Row, Paste Data Last Row Plus two Rows

    Please Login or Register  to view this content.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Find Last Row, Paste Data Last Row Plus two Rows

    Hi Sherylt,

    The vba code to find the bottom row looks like this:

    Dim LastRow as Double
    LastRow = Cells(Rows.Count,"A").End(xlUp).Row

    The Rows.Count is a number of the last row in your worksheet. Older Excel didn't have as many rows as newer Excel does. The Cells(Rows.Count,"A") moves the cursor to the bottom of column A. Then the End(xlUp) is like pressing Ctrl + Up on the keyboard. It jumps to the last entered anything in Col A. The .Row gives you the row that is the last one in your column A. If you add 2 to that, you will get the number you seek.

    Or read: https://www.excelcampus.com/vba/find...w-column-cell/

    Hope that helps.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    08-08-2015
    Location
    NJ
    MS-Off Ver
    2013
    Posts
    205

    Re: Find Last Row, Paste Data Last Row Plus two Rows

    Thank you !!

  5. #5
    Forum Contributor
    Join Date
    08-08-2015
    Location
    NJ
    MS-Off Ver
    2013
    Posts
    205

    Re: Find Last Row, Paste Data Last Row Plus two Rows

    Thank you for the added information, very helpful.

    Sheryl

+ 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. Loop through column to find EID then find date and paste corresponding data
    By CieloSalas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2017, 06:33 PM
  2. [SOLVED] Macro to use cell value in ws1 to find same value in ws2 then add rows and paste.
    By cody4334 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2013, 08:41 AM
  3. Replies: 2
    Last Post: 07-18-2012, 09:11 AM
  4. Replies: 4
    Last Post: 07-10-2011, 06:57 PM
  5. Speeding up Find Cut/Paste Rows
    By jaimie1664 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-26-2011, 11:46 AM
  6. Find and paste rows into new workbook
    By adgjqetuo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-22-2009, 10:51 AM
  7. [SOLVED] Macro to: Find a Reference, and then Paste into the 10 Rows Below
    By Blobbies in forum Excel General
    Replies: 9
    Last Post: 03-14-2006, 07:20 AM

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