copy value from cell paste special only values to last row of column

cantante

New Member
Joined
Nov 8, 2021
Messages
6
Office Version
  1. 2007
Platform
  1. Windows
Hi Guys,

I currently have this macro

Sub COPYTODASH()
Application.ScreenUpdating = False
Worksheets("DASHBOARD").Range("R26:R26").Copy Worksheets("PROG").Range("C" & Rows.Count).End(xlUp)(2)
Application.ScreenUpdating = True
End Sub

It works as expected, the only problem I'm having is that it's pasting the formula, I need to paste only the value
from ("DASHBOARD").Range("R26:R26")

So I'm trying to add the paste special values only portion, but I do not know where to incorporate it exactly.

Can someone please help me, Thanks!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try this:
VBA Code:
Sub My_Sub()
'Modified  11/8/2021  1:50:23 AM  EST
Application.ScreenUpdating = False
Worksheets("DASHBOARD").Range("R26").Copy
Worksheets("PROG").Range("C" & Rows.Count).End(xlUp)(2).PasteSpecial xlPasteValues
Application.ScreenUpdating = True
End Sub
 
Upvote 0
Or use this:
No need to copy
VBA Code:
Sub My_Sub()
'Modified  11/8/2021  1:55:42 AM  EST
Application.ScreenUpdating = False
Worksheets("PROG").Range("C" & Rows.Count).End(xlUp)(2).Value = Worksheets("DASHBOARD").Range("R26").Value
Application.ScreenUpdating = True
End Sub
 
Upvote 0
Solution
Or use this:
No need to copy
VBA Code:
Sub My_Sub()
'Modified  11/8/2021  1:55:42 AM  EST
Application.ScreenUpdating = False
Worksheets("PROG").Range("C" & Rows.Count).End(xlUp)(2).Value = Worksheets("DASHBOARD").Range("R26").Value
Application.ScreenUpdating = True
End Sub
Thank you both solutions worked flawlessly!
 
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,122
Members
452,545
Latest member
boybenqn

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