Copy down formulae

waxb18

Board Regular
Joined
May 31, 2011
Messages
179
Hi again guys

I basically need a macro to copy down the last row of data from columns C through to I

I have managed to select the Last cell in column C but this is where im getting stuck in selecting the rest of the row up to I and then pasting it down one row.

This is what i have

Range("C36").End(xlDown).Select
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Maybe like this

Code:
With Range("C36").End(xlDown)
    .Resize(, 7).Copy
    .Offset(1).PasteSpecial Paste:=xlPasteFormulas
End With
 
Upvote 0
Nice one YET AGAIN VoG...

Another quick one for you...

I need to insert a new row above the last row of data.....

any ideas?
 
Upvote 0
Try like this

Code:
Dim LR As Long
LR = Cells.Find(what:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
Rows(LR).Insert
 
Upvote 0
Maybe like this

Code:
With Range("C36").End(xlDown)
    .Resize(, 7).Copy
    .Offset(1).PasteSpecial Paste:=xlPasteFormulas
End With


VoG Is there a way that i can get this macro to ignore blank cells but still get to the end of the data as there is missing cells through Column C where data hasnt been entered
 
Upvote 0
and also a quick way to paste to the bottom of data rather than single cell as i am using this macro for a different purpose now
 
Upvote 0
Maybe like this

Code:
Dim LR As Long
LR = Cells.Find(what:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
With Range("C" & LR)
    .Resize(, 7).Copy
    .Offset(1).PasteSpecial Paste:=xlPasteFormulas
End With
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top