+ Reply to Thread
Results 1 to 5 of 5

Macro to copy to formula down to last row with data in

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Macro to copy to formula down to last row with data in

    Hi,

    Can anyone please advise me of the macro/VBA I need to copy a formula in cell ‘AL2’ down ‘Column AL’ i.e. to the last row with data in

    Many thanks in advance for any assistance required

    Regards

    Rob
    Rob

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Macro to copy to formula down to last row with data in

    Data in what column?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Macro to copy to formula down to last row with data in

    Special-K,

    the formula in cell 'AL2' is a Vlookup formula that I want the macro/VBA code to copy down column 'AL' i.e. to the last row with data in (Columns A:AM)

    Regards

    Rob

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Macro to copy to formula down to last row with data in

    Try (untested so save your data first)

    Please Login or Register  to view this content.
    copies the formula in AL2 from AL3 onwards for however many rows there are in column A

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,572

    Re: Macro to copy to formula down to last row with data in

    You don't need to loop. You can do it tis way:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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] Macro to copy both value and format, but not the formula of a range of data
    By kent97 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2016, 10:26 PM
  2. [SOLVED] Macro to copy and paste data and update formula
    By Aoleone# in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2016, 02:44 PM
  3. [SOLVED] Macro to copy formula to end of data based in another sheet
    By Wazations in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-31-2012, 10:50 PM
  4. [SOLVED] Macro to Copy Formula Down Until Data in Adjacent Column Becomes Text
    By jcranst in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2012, 07:46 AM
  5. Macro or Formula to Copy and Paste data
    By aarbuckle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2009, 11:34 PM
  6. [SOLVED] Macro to copy formula to all rows that contain data in columns A:C
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2006, 10:45 PM
  7. Macro or formula to copy data based on criteria
    By MT in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2005, 10:03 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