Advice please for pasting correcyly as currently i see #REF!

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,226
Office Version
  1. 2007
Platform
  1. Windows
Afternoon.

A simple task isnt working for me.

I am trying to copy two values from one sheet & paste to another sheet.
The two values im copying have the =SUM in the cell

I copy ok but when i paste i see #REF!
The code in use is as follows,

Rich (BB code):
Private Sub OneToTwo_Click()
Worksheets("ONE").Range("F16:F17").Copy Worksheets("TWO").Range("R9:R10")
End Sub

I think its due to the =SUM code but i tried special etc but didnt then get a paste value just another error.

What did i do wrong

Thanks
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Try this:
VBA Code:
Private Sub OneToTwo_Click()
'Modified  5/8/2022  10:02:54 AM  EDT
Worksheets("TWO").Range("R9:R10").Value = Worksheets("ONE").Range("F16:F17").Value
End Sub
 
Upvote 0
Or use this:
VBA Code:
Private Sub OneToTwo_Click()
'Modified  5/8/2022  10:16:54 AM  EDT
Worksheets("ONE").Range("F16:F17").Copy
Worksheets("TWO").Range("R9:R10").PasteSpecial xlPasteValues
Application.CutCopyMode = False
End Sub
 
Upvote 0
Solution

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

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