+ Reply to Thread
Results 1 to 3 of 3

vba/macro select last two cells and copy down

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    7

    vba/macro select last two cells and copy down

    Hi all
    I'm a newbie to vba and i have finally managed (after many hours) to select the last two cells in column AY along with the two cells adjacent in AZ by using the following code:

    Please Login or Register  to view this content.
    However, I now want to copy that selection e.g. AY2:AZ3 down to the last row.
    I tried many things including adding the following line but I can't get it to work...
    Please Login or Register  to view this content.
    Any help much appreciated!
    Cheers
    Last edited by GaryDML; 11-30-2013 at 02:23 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: vba/macro select last two cells and copy down

    Hi, GaryDML,

    maybe like this:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    12-13-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: vba/macro select last two cells and copy down

    Hi Holger
    Awesome! Thanks so much! Really appreciate it.
    Cheers
    Gary

+ 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. Replies: 2
    Last Post: 09-06-2012, 07:55 PM
  2. [SOLVED] can only copy/select visible cells w autofilter on &hidden columns, want to copy all cells
    By JTwrk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-25-2012, 02:12 AM
  3. Select and copy cells based on values in another cells
    By JoC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2008, 04:39 AM
  4. Select a range of cells and then copy them, and paste into other cells
    By Dynelor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-24-2007, 04:03 PM
  5. [SOLVED] Want macro to select & copy cells from a different worksheet
    By RocketRod in forum Excel General
    Replies: 5
    Last Post: 02-28-2006, 09:00 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