Paste Values rather than formula VBA

stroffso

Board Regular
Joined
Jul 12, 2016
Messages
160
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have some code where its picking data from one sheet and dropping it into another. However i just have a small issue with one piece as its pasting the actual formula rather than just the values. can someone advise with what I am missing or what I need here to do it?

Sub Copyover
Sheets("Master sheet").Range("A5").Copy _
Destination:=Sheets("New Sheet").Cells(Cells.Rows.Count, _
1).End(xlUp).Offset(0, 4)

End Sub

thanks in advance
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Code:
[COLOR=#333333]Destination:=Sheets("New Sheet").Cells(Cells.Rows.Count, _[/COLOR]
[COLOR=#333333]1).End(xlUp).Offset(0, 4).PasteSpecial Values[/COLOR]
 
Upvote 0
I tried that previously but a compile error occured stating unexpected end of statement. I have done a workaround anyhow so all is good, thanks
 
Upvote 0
Code:
Sub justSayNotoCopyPaste()

Sheets("New Sheet").Cells(Cells.Rows.Count, _
1).End(xlUp).Offset(0, 4).Value = Sheets("Master sheet").Range("A5").Value

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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