+ Reply to Thread
Results 1 to 5 of 5

how to check value in last 11 row and copy past?

  1. #1
    Forum Contributor
    Join Date
    02-12-2010
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    134

    how to check value in last 11 row and copy past?

    hi
    i have following code it copy data but in last row every time since it check the value of column
    "A9:A" but i need to check only last 11 entry of that column.what should i do to this code so it check only last 11 entry of the column "A"

    Please Login or Register  to view this content.
    module code is like this.

    Please Login or Register  to view this content.
    also here i attached the sample wb so u may have better idea what i need to do
    and also it auto fill down the formulas from previous row to new row if row insert for new records inserted at bottom.
    any help is appreciated
    Attached Files Attached Files
    Last edited by jay11; 01-03-2011 at 07:12 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: how to check value in last 11 row and copy past?

    Not quite sure I follow what you want to do but you might want to check out both Offset & Resize in VBE Help (from last populated cell)

  3. #3
    Forum Contributor
    Join Date
    02-12-2010
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    134

    Re: how to check value in last 11 row and copy past?

    hi DonkeyOte

    in this code

    Please Login or Register  to view this content.
    insted of "A9:A" is there i can put like "Row.Count -11" something like i am not good with VBE so pl excuses my silly stuff.
    thanks for your sugetion but i have no idea what and how Offset & Resize in VBE Help (from last populated cell) work.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: how to check value in last 11 row and copy past?

    something along the lines of:

    Please Login or Register  to view this content.
    however you should really be checking that the offset of -10 does not take you off the sheet...

  5. #5
    Forum Contributor
    Join Date
    02-12-2010
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    134

    Re: how to check value in last 11 row and copy past?

    hi DonkeyOte
    thank you it work great

+ 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