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.
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.
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
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.
Hi Arkadi
I avoided using that end(up) technique for finding the last cell as I work with a lot of incomplete data.
@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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks