How to write a Macro to drag row down and then Copy and Paste special values

Blazernfire

New Member
Joined
May 26, 2015
Messages
4
Hi,

I need to write a macro to drag a row down where the formula is in the range (A27:I27) and then go back to the row where the formula is and do a copy and paste special in about 10+ tabs that I have in one workbook. The range number varies from tab to tab. Can this be done?

Thanks.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Welcome to the board. Code below will work for a single sheet. You can put this code into a loop to loop through several sheets:
Code:
Sub UpdateResults

Dim LR as Long

LR = Range("A" & Rows.Count).End(xlUP).Row - 27 + 1

With Range("A27").Resize(LR, 9)
    .FillDown
    .Calculate
    .Value = .Value
End With

End Sub
 
Upvote 0
Hi,

the macro didn't really work. I want the formula to be dragged down only 1 row and then the row with the formula to copy paste special values.

Thanks.
 
Upvote 0

Forum statistics

Threads
1,214,402
Messages
6,119,301
Members
448,885
Latest member
LokiSonic

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