Copy range c19:g19 then paste special (values) to next empty row

levi58

New Member
Joined
Feb 9, 2011
Messages
5
Hi,
I've been racking my brain to do a simple task I suppose. I want to copy range c19:g19 and then paste special the values into the next available (empty) row starting at k5 through k35.
I would like to put the code in a macro that also performs other duties. Any help would be greatly appreciated.

Thanks,

John
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try

Code:
Sub cpy()
Dim LR As Long
LR = WorksheetFunction.Max(5, Range("K" & Rows.Count).End(xlUp).Row)
Range("C19:G19").Copy
Range("K" & LR).PasteSpecial Paste:=xlPasteValues
End Sub
 
Upvote 0
Thanks, just getting off of work now, I'll try it when I get home.
Thankyou for your help,

John
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,519
Members
452,921
Latest member
BBQKING

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