+ Reply to Thread
Results 1 to 6 of 6

Autofill columns with data from first 3 cells

  1. #1
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 2013
    Posts
    237

    Autofill columns with data from first 3 cells

    I have searched with no luck as to how I may copy the cells A1-C1 and then autofill this data into A2:C using VBA.
    The number of rows to Autofill will vary depending on the data I paste.
    I have tried the below code with no luck. I'm obviously missing something.
    Please Login or Register  to view this content.
    Could someone kindly show me the code I need please?
    Sample01.xlsx

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,379

    Re: Autofill columns with data from first 3 cells

    Maybe:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    824

    Re: Autofill columns with data from first 3 cells

    Have you set Lastrow? Something like this should work:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 2013
    Posts
    237

    Re: Autofill columns with data from first 3 cells

    Thank you so much. Once LastRow set all worked perfectly. Greatly appreciated.

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,379

    Re: Autofill columns with data from first 3 cells

    You're welcome and thanks for the rep!

  6. #6
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    824

    Re: Autofill columns with data from first 3 cells

    Glad to hear it worked for you

+ 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 data in adjoining columns based on value selected in first column
    By ishwarananda in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2014, 06:03 AM
  2. Replies: 4
    Last Post: 01-09-2014, 06:43 AM
  3. autofill multiple columns and visible cells only
    By njan1982 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-27-2013, 11:28 PM
  4. How to get certain cells to autofill with data from another tab?
    By Devon1112 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-11-2013, 03:41 PM
  5. [SOLVED] Autofill based on data in other columns
    By db3712 in forum Excel General
    Replies: 8
    Last Post: 11-07-2012, 03:34 PM
  6. Autofill Columns with data from another column
    By Mackb in forum Excel General
    Replies: 4
    Last Post: 12-20-2010, 06:26 PM
  7. Replies: 1
    Last Post: 06-17-2005, 04:05 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