Can you paste special column borders only?

Milos

Board Regular
Joined
Aug 28, 2016
Messages
121
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have been successfully Paste Special(ing) values into another workbook using this code:

With Selection
.PasteSpecial Paste:=xlPasteValues
End With

However as I am anal retentive and I like everything to look perfect I am wanting to Paste special the borders without any of the other formats (i.e. formulas etc). Is this able to be coded alongside the paste special values?

Any help is greatly appreciated!

Thanks,
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
A1=B1+C1 paste special values A1 to D1 clearly pastes the VALUE from A1

providing D1 was previously given a border the border will remain

if D1 is empty and borderless use this conditional formatting in D1and apply border if true =D1<>""
 
Upvote 0
You can use .PasteSpecial xlPasteFormats which pastes formatting without pasting formulas.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

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