+ Reply to Thread
Results 1 to 7 of 7

Need to copy values to bottom of column till data runs out

  1. #1
    Forum Contributor
    Join Date
    03-31-2017
    Location
    usa
    MS-Off Ver
    2013
    Posts
    104

    Need to copy values to bottom of column till data runs out

    hi, i have data in columns W6:Y6 (w6 has a date in it and x and y have formulas) and want to copy what i have there all the way down to the end of those columns till the data stops. The number of rows of data varies. Sometimes I may have 500 and other times it may be in the thousands of rows. How can I do this in code?

  2. #2
    Forum Contributor
    Join Date
    03-31-2017
    Location
    usa
    MS-Off Ver
    2013
    Posts
    104

    Re: Need to copy values to bottom of column till data runs out

    just a clarification. I have data in columns a:w that varies with the extract I do. typically I would do a shft-cntrl-end and then go left 3 columns and shft-up arrow and then cntrl-d

  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: Need to copy values to bottom of column till data runs out

    Not sure if this helps, or whether you have those columns populated with data. If it is not populated you would have to rely on another column perhaps A to establish a last row variable.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-31-2017
    Location
    usa
    MS-Off Ver
    2013
    Posts
    104

    Re: Need to copy values to bottom of column till data runs out

    thx. this works for the next row. in those three columns I only have data in row 6 and am trying to copy that down to the last row of data. how do I get that variable to get it to copy to the last column of data?

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

    Re: Need to copy values to bottom of column till data runs out

    Maybe:

    Please Login or Register  to view this content.
    Or

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    03-31-2017
    Location
    usa
    MS-Off Ver
    2013
    Posts
    104

    Re: Need to copy values to bottom of column till data runs out

    thanks! that second method seems to work great since my main data is actually in col b.

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

    Re: Need to copy values to bottom of column till data runs out

    You're welcome. Glad to help out and thanks for the feedback.

+ 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. VBA to copy down Vlookup VBA code in Column till last available data
    By shansakhi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2014, 08:09 AM
  2. Copy entire selected column to next columns till last column
    By siroos12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2013, 05:20 AM
  3. Copy data from textbox1 to column A till end of cell data of column B
    By JoaoFerreira1985 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-12-2013, 01:19 PM
  4. Copy Paste and Loop till last column with data
    By eirumba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2011, 07:23 AM
  5. Code to copy data from one column and paste in at the bottom of another list
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2011, 10:20 PM
  6. Replies: 2
    Last Post: 02-18-2005, 10:06 AM
  7. Replies: 2
    Last Post: 02-18-2005, 10:06 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