Copy Values, not format

porepiga

New Member
Joined
Apr 10, 2015
Messages
13
Hello!

I'm using the following to copy values from one sheet to another:

Sub Copycopy()
Range("B3").Copy Sheets("Sheet2").Range("B" & Rows.Count).End(xlUp).Offset(1, 0)
Range("B4").Copy Sheets("Sheet2").Range("B" & Columns.Count).End(xlUp).Offset(0, 1)
Range("B5").Copy Sheets("Sheet2").Range("B" & Columns.Count).End(xlUp).Offset(0, 2)
End Sub


The problem is that it's coping the format of the cell containing the information, and I don't want that. I want to copy values only. What do I need to modify on my code?


Thanks!!!!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi - As I understand it, you do not need to modify your "copy" code but rather your "paste" code to do a paste special > values rather than a simple paste (which by default pastes formats as well). so something like:

Code:
[COLOR=#333333]Worksheets("your_destination_sheet").Range("A2").PasteSpecial xlPasteValues[/COLOR]
 
Upvote 0
I tried it, but I can't make it work (I'm new at this).

I'm trying to copy the information to the "next available blank cell", that's why I'm using that code.

I replaced:

Range("B" & Rows.Count).End(xlUp).Offset(1, 0)

With:

Range("B").PasteSpecial xlPasteValues

...but it didn't work
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,283
Members
449,075
Latest member
staticfluids

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