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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,224,829
Messages
6,181,224
Members
453,025
Latest member
Hannah_Pham93

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