Need macro button to copy and paste special values into next available blank row

AngelaG

New Member
Joined
Sep 26, 2011
Messages
2
Hi All,
Totally new to VBA but I need my macro button to paste special the values from one data selection in one worksheet (cells L7:N7), into the next available blank row in a separate worksheet (columns B:E).

I've got thus far with the below code but obviously this just copies and pastes into the same fields as oppose to the next blank row.

Help would be massively appreciated: :-)

Angela

Code:
Sub RoundedRectangle5_Click()
'
' RoundedRectangle5_Click Macro
'

'
Range("L7:N7").Select
Selection.Copy
Sheets("Follow Up Screen").Select
Range("B3:E3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("D12").Select
Sheets("Workleads Screen").Select
End Sub
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi. Try this

Code:
Sub RoundedRectangle5_Click()
'
' RoundedRectangle5_Click Macro
'

'
Range("L7:N7").Copy
Sheets("Follow Up Screen").Range("B" & Rows.Count).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
Sheets("Workleads Screen").Select
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,261
Members
452,901
Latest member
LisaGo

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