PasteSpecial

vbaNewby

Board Regular
Joined
Jan 26, 2011
Messages
138
I am using pasteSpecial to copy from one worksheet to another.

Code:
Range("A1").PasteSpecial Paste:=xlPasteValues

The range I copy has borders. These borders are carrying over to my range("A1") on my other sheet.

I do not want that. I thought xlPasteValues does not carry over borders?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I've tried:

Code:
[COLOR=blue] Paste:=xlPasteAllExceptBorders[/COLOR]

Still pasting borders? Strange.
<table width="1217" border="0" cellpadding="0" cellspacing="0"><col width="21" span="5"><col width="216"><col width="64" span="14"><tr height="20"> <td style="height: 15pt; width: 16pt;" width="21" height="20">
</td> <td style="width: 16pt;" width="21">
</td> <td style="width: 16pt;" width="21">
</td> <td style="width: 16pt;" width="21">
</td> <td style="width: 16pt;" width="21">
</td> <td style="width: 162pt;" width="216">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> </tr></table>
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,687
Members
452,938
Latest member
babeneker

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