Copying Range of Cells

mufsoman

New Member
Joined
Oct 4, 2011
Messages
5
I know this must be a very basic question, but nevertheless, I'm stilll stuck. Within a macro, I need to copy data in a range of cells into a location in another tab. I used the following, but it did not work. Looking for recommended solutions. Thanks

Worksheets("Mfg_Cost_Detail").Range("A211:S211").Value = Worksheets("Data_Entry").Range("B52:T52")
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I know this must be a very basic question, but nevertheless, I'm stilll stuck. Within a macro, I need to copy data in a range of cells into a location in another tab. I used the following, but it did not work. Looking for recommended solutions. Thanks

Worksheets("Mfg_Cost_Detail").Range("A211:S211").Value = Worksheets("Data_Entry").Range("B52:T52")

Code:
Worksheets("Mfg_Cost_Detail").Range("A211:S211").Copy Destination:=Worksheets("Data_Entry").Range("B52:T52")
 
Upvote 0
Yes, this did work, however, I needed to switch the order of the cell ranges so it copied the right direction. Thanks for the quick reply cstimart !!!! :biggrin:
 
Upvote 0
Code:
Sheets(""Mfg_Cost_Detail").Range("A211:S211").Copy
Sheets("Data_Entry").Range("B52").PasteSpecial Paste:=xlPasteValuesAndNumberFormats, _
     Operation:=xlNone, SkipBlanks:=False, Transpose:=False[FONT=monospace]
[/FONT]
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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