Results 1 to 8 of 8

Loop range copy based on previous column

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-20-2009
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    203

    Loop range copy based on previous column

    I want to copy what's on D column and stop from the last row of column A and paste it on column F. I already tried this code, but its not working. i don't know what am i missing.?



    Dim lastrow As Long
    Dim Last_Row As Long
    
    Last_Row = Range("A" & Rows.Count).End(xlUp).Row
    lastrow = Cells(Rows.Count, "D").End(xlUp).Row
    
    Range("D2").Resize(lastrow).Copy Range("F2" & Last_Row)
    Thanks for the usual help!
    Last edited by darkhangelsk; 03-12-2014 at 01:10 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 08-13-2013, 09:44 AM
  2. [SOLVED] loop through certain ranges and put down specific text based on previous cell with data
    By liz5818 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2013, 01:43 PM
  3. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  4. Copy and Paste Loop based on corresponding value in another column
    By gibby8 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2011, 03:25 PM
  5. Copy dynamic range from previous sheet and paste after last used row in a range
    By Mistweaver in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-04-2010, 06:24 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