Simple Copy value question

AAAAndy

New Member
Joined
Feb 1, 2010
Messages
27
I simply want to assign the value in one range to another range.
Let’s say I have Worksheet1, which has a cell named Range1 containing the value “AAA”.
I have another sheet, Worksheet2, with a cell named Range2.
I want to assign the value in Range1 to cell Range2.
Shouldn’t I be able to say…
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
Sub CopyLabel()
Range1 = Range2
End Sub
<o:p></o:p>
If that doesn’t work, then shouldn’t this?...
Sub CopyLabel()
Worksheets("Worksheet1").Range("Range1").Copy
Worksheets("Worksheet2").Select
Range("Range2").Select
Selection.PasteSpecial Paste:=xlPasteValues
End Sub

Thanks!
 

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)
Try

Code:
Sub CopyLabel()
Range("Range1").Value = Range("Range2").Value
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,853
Members
449,194
Latest member
HellScout

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