+ Reply to Thread
Results 1 to 4 of 4

Copy active cell to end of range

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Copy active cell to end of range

    Good day, Gurus.

    This should be easy, but I'm getting hung up on the syntax, (I think).

    Trying to copy the formula in the active cell to the bottom of the used range. In the script below the line Range(ActiveCell & ":U" & Cells(Rows.Count, "A").End(xlUp).Row).Select throws the error "Method 'Range' of object '_Global' failed"

    Please Login or Register  to view this content.
    How do I correct the italicized line above to copy from the active cell to the end of the range in column U?

    Thanks in advance.
    Last edited by [email protected]; 09-11-2013 at 11:58 PM.

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Copy active cell to end of range

    But it seems you are already at the last row in Column U?
    Please Login or Register  to view this content.
    this line should have brought you there, and then you entered =TODAY() in there, copies it, and where do you want to paste it?

  3. #3
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Copy active cell to end of range

    Got it, peoples.

    The correct syntax is:

    Range(ActiveCell, "U" & Cells(Rows.Count, "A").End(xlUp).Row).Select

    This thread is solved.

    Thanks.

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Copy active cell to end of range

    Sorry I wasn't clear. I add copy new data from another workbook into this one daily, but my data only goes as far as column T. I then wanted to add today's date in column U, and copy it to the bottom of the used range.

    The line above fixed me up.

    Thanks.

+ 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. Select and Copy Range from Active Cell
    By Leah in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-21-2009, 03:23 PM
  2. Copy range into active cell
    By jeff p in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-11-2009, 03:48 PM
  3. [SOLVED] need to Copy or Move to active cell from specified range
    By kaream in forum Excel General
    Replies: 2
    Last Post: 12-14-2005, 04:15 AM
  4. To copy from a range in another sheet to the active cell
    By raja in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2005, 12:05 PM
  5. [SOLVED] Macro Copy Active Cell to Range Name, loop
    By zigstick in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-27-2005, 03:06 PM

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