Looping - Copying Formulas & pasting

Excellover123

New Member
Joined
Jul 13, 2018
Messages
37
Hello Message Board.
I have a formula that lives in row 5 (Actually is many formuals between Q5:DC5).
I would like to copy these down the sheet & paste them (first as formula then as the value (Once calculated).
I have tried using "Range(i & counter1 & ":" & o & counter1).Formula = Range("Q5:DC5").Formula"
(For ref: - i = Column Q, o = column DC)
This is coping the formula but the cell references are not moving relatively.
Any ideas how to do this?
Many thanks.
Gary
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
If you just want to copy the formulas in Q5:DC5 down to the last row (let's call it "LR"), then you could simply do this:
VBA Code:
Range("QC5:DC5").Copy Range("Q6:Q" & LR)
and then you could change these to hard-code values like this:
VBA Code:
Range("QC5:DC" & LR).Value = Range("QC5:DC" & LR).Value
 
Upvote 0
If you just want to copy the formulas in Q5:DC5 down to the last row (let's call it "LR"), then you could simply do this:
VBA Code:
Range("QC5:DC5").Copy Range("Q6:Q" & LR)
and then you could change these to hard-code values like this:
VBA Code:
Range("QC5:DC" & LR).Value = Range("QC5:DC" & LR).Value
Thank you, Joe. I will give that i blast.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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