+ Reply to Thread
Results 1 to 4 of 4

AutoFill Destination

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-09-2008
    Location
    Middlesbrough, England
    MS-Off Ver
    2007
    Posts
    174

    AutoFill Destination

    Hi,

    I have a worksheet which changes the number of rows each day

     ActiveCell.AutoFill Destination:=Range("E3:E" & Range("D" & Rows.Count).End(xlUp).Row)
    I have the above but i dont want to referance E3 as this cell may move up or down depending on the volume of data i have.

    I basically want to use the ActiveCell and to auto populate based against column D.

    Kind Regards

    Chris

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: AutoFill Destination

    You may try:
    ActiveCell.AutoFill Destination:=Range(Activecell, Cells(Range("D" & Rows.Count).End(xlUp).Row, Activecell.Column))
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: AutoFill Destination

    Another?

     ActiveCell.AutoFill Destination:=Range("E" & activecell.row & ":E" & Range("D" & Rows.Count).End(xlUp).Row)

  4. #4
    Forum Contributor
    Join Date
    09-09-2008
    Location
    Middlesbrough, England
    MS-Off Ver
    2007
    Posts
    174

    Re: AutoFill Destination

    Excellent works a charm thank you very much

+ 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. Autofill a destination range using last row value
    By jaym911 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2013, 12:07 PM
  2. Autofill destination problem
    By cassiopea in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-08-2012, 07:52 AM
  3. Autofill destination by columns
    By jeffreybrown in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2009, 01:19 AM
  4. autofill to variable destination
    By katmison in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-30-2009, 06:57 PM
  5. Using Autofill with Destination Parameter as a Variable
    By MartinShort in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2008, 08:48 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