+ Reply to Thread
Results 1 to 3 of 3

Autofill Two Columns Over Twenty Four Columns

  1. #1
    Registered User
    Join Date
    05-10-2018
    Location
    Pennsylvania
    MS-Off Ver
    Office 365
    Posts
    43

    Autofill Two Columns Over Twenty Four Columns

    Hello!

    Okay, so I have a document that I need to create. The rows are variable so I need to use the LastRow code. Below is what I have so far but it throws an error. Is there a way to copy Columns I and J to autofill to Column AF.

    Please Login or Register  to view this content.
    Image 1 is the original rows and Image 2 is what it should look like once it is done.

    LastRow Autofill 1.JPG

    LastRow Autofill 2.JPG

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Autofill Two Columns Over Twenty Four Columns

    change

    Range("I5:J5" & LastRow11).Select

    to

    Range("I5:J" & LastRow11).Select

  3. #3
    Registered User
    Join Date
    05-10-2018
    Location
    Pennsylvania
    MS-Off Ver
    Office 365
    Posts
    43

    Re: Autofill Two Columns Over Twenty Four Columns

    That worked...I can't believe I didn't catch that!

    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. [SOLVED] Autofill columns with IF-formula
    By Halvor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-26-2016, 11:51 AM
  2. [SOLVED] Autofill across columns
    By ablacksheep in forum Excel General
    Replies: 5
    Last Post: 03-25-2014, 11:06 AM
  3. Using Autofill to autopopulate columns
    By TheTrooper in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-30-2013, 04:20 AM
  4. [SOLVED] VBA to autofill columns
    By Doctor_H in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-26-2013, 06:01 PM
  5. Autofill destination by columns
    By jeffreybrown in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2009, 01:19 AM
  6. [SOLVED] AutoFill columns
    By Charlie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2005, 01:06 PM
  7. Replies: 2
    Last Post: 03-26-2005, 10:36 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