+ Reply to Thread
Results 1 to 5 of 5

Copy and Past Formulas

  1. #1
    Forum Contributor
    Join Date
    07-27-2012
    Location
    Somerset, Kentucky
    MS-Off Ver
    Excel 2007
    Posts
    123

    Copy and Past Formulas

    I have formulas in cells A5:H5. I need to copy and paste the formulas into cells A6 through the last cell down with content in it in column H.

  2. #2
    Registered User
    Join Date
    09-12-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2013
    Posts
    38

    Re: Copy and Past Formulas

    if you particularly want to do this with a macro, to find the last row use the ActiveSheet.Cells.SpecialCells(xlLastCell).Row
    then you want to copy paste special for just formulas. let me know if there's something you need to know more about.

    can use the line above as part of a select statement for pasting something like this.
    range(cells(5,1),cells(ActiveSheet.Cells.SpecialCells(xlLastCell).Row,5).pastespecial

    I have not tested this as yet, can go further if needed

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Copy and Past Formulas

    Another option:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Registered User
    Join Date
    09-12-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2013
    Posts
    38

    Re: Copy and Past Formulas

    Hi Arkadi
    I avoided using that end(up) technique for finding the last cell as I work with a lot of incomplete data.

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Copy and Past Formulas

    @rondeondon, fair enough... but if the user truly wants the last cell in a column, then that method works well, even if there are blank cells in the data, because it looks from the bottom upwards. Your method is often better if looking across multiple columns though, because yes, the xlUp method does require a column that is guaranteed to have data in the bottom row.

+ 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. Replies: 3
    Last Post: 01-29-2018, 11:48 PM
  2. copy the intersection of selected cells and past delimition then copy results to another
    By hassan khansa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2017, 04:57 PM
  3. [SOLVED] copy and past down formulas
    By josvill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2016, 11:35 AM
  4. [SOLVED] Copy from Excel to Reflection, simple Copy & past script ... Help Please : )
    By strik009 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2015, 02:15 PM
  5. Copy, past, formulas, loop
    By Aftermaind in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-13-2014, 08:24 AM
  6. [SOLVED] Macro to delete formulas extended past data set
    By mcranda in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 06-25-2013, 05:49 PM
  7. How to past formulas without updating external links
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-04-2005, 08:05 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