+ Reply to Thread
Results 1 to 4 of 4

VBA Fill to last Row (multiple columns)

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    69

    VBA Fill to last Row (multiple columns)

    Hi,

    I'm trying to write a macro which automatically fills formulas I have from row O10 to U10, all the way down to the last row of data as prescribed by column A.

    So far I have this macro that I found on this forum and I got it to work for data in column O only.

    Can someone help me modify this macro so that it will fill all the data from column O to U?

    Sub FillFormula()
    Dim LastRow As Long
    LastRow = Cells(Rows.Count, "A").End(xlUp).Row

    Range("O10").AutoFill Destination:=Range("O10:O" & LastRow)
    End Sub


    Thanks!

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Fill to last Row (multiple columns)

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: VBA Fill to last Row (multiple columns)

    I tried that, but I"m getting an error message

    "Autofill method of range class failed"

  4. #4
    Registered User
    Join Date
    07-11-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: VBA Fill to last Row (multiple columns)

    Nvm,

    Ended up using this incase anybody else in the future wants to know:
    Please Login or Register  to view this content.
    Long, but worked!
    Last edited by Leith Ross; 01-24-2013 at 05:38 PM. Reason: Added Code tags

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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