+ Reply to Thread
Results 1 to 4 of 4

Autofill Data based off current sheet lastrow not first sheet lastrow

  1. #1
    Registered User
    Join Date
    07-25-2016
    Location
    Colorado, USA
    MS-Off Ver
    Office 2013
    Posts
    65

    Autofill Data based off current sheet lastrow not first sheet lastrow

    I am trying to insert data "1" into cell K2 in Sheet2 and copy that data down to the last row that has data in it. I want the autofill end row to be based off of column "A" in that respective sheet. I also have to move to the next sheet and do the same... etc. etc.

    What is happening is that the data is autofilled, however, it is basing the end row it copies to off of "Sheet1" column "A" instead of the sheet where I am trying to autofill. This, of course, makes the data autofill, but way past what the actual end row is in "sheet2" due to Sheet 1 having many more rows....

    How do I Autofill each sheet based off the endrow "A" in the respective sheet?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Autofill Data based off current sheet lastrow not first sheet lastrow

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    07-25-2016
    Location
    Colorado, USA
    MS-Off Ver
    Office 2013
    Posts
    65

    Re: Autofill Data based off current sheet lastrow not first sheet lastrow

    Thanks for that, that helps if I am going to name each "K" column "Verified" and copy the cell data to the end for each sheet (all the same). (which I will be doing)

    What if sheet2 column L1 will need to be named "Name" and in L2 i will have a value "Bob" that will be copied to the end (to the last row in column "A"). But the next sheet3 L2 will be named "Jimmy" that will be copied to the end (to the last row based off column A) etc. etc. for multiple sheets

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Autofill Data based off current sheet lastrow not first sheet lastrow

    Please Login or Register  to view this content.

+ 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. R1C1 lastRow not lastRow when data combined
    By Spyderwoman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2016, 05:20 PM
  2. [SOLVED] LastRow - for next loops longer than lastrow?
    By flabb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2016, 12:39 PM
  3. [SOLVED] Copy formula from one sheet & paste in other sheet after lastrow
    By Parth007 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2015, 09:32 AM
  4. [SOLVED] Copy Autofill Down to LastRow
    By RUTrading in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2014, 02:12 PM
  5. Autofill to LastRow but Miss Out Some Rows!?
    By dvent in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2011, 05:14 PM
  6. lastRow & Autofill not working
    By dvent in forum Excel General
    Replies: 0
    Last Post: 04-08-2008, 06:19 AM
  7. Autofill to lastrow
    By Pedros in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-11-2007, 12:55 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