VBA Help - trying to transfer borders from one column into another

lkent03

New Member
Joined
Oct 24, 2017
Messages
3
Hello - I'm creating a workbook for our accounting team that starts with a QuickBooks report (sheet1), which feeds into a distribution report (sheet2) which feeds into a third report (sheet3) that will be used to import raw data back into QuickBooks.

I'm having trouble syncing sheets 1 & 2 - I'm stuck on the borders. These reports are formatted like financial statements and have columns with line item amounts (no border), account totals (bold single line border on top and bottom) and grand total (bold single line border on top and double line border on the bottom).

Is there a way to automatically transfer the borders found in columns N & P in sheet1 to columns N & P in sheet2? I only want the borders to transfer because a lot of the cells in sheet2 contain formulas.

Thank you!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
That works but I was hoping to automate it. But at least it's a quicker solution than formatting cell by cell. Thanks!
 
Upvote 0
try

Code:
Sub do_it()
Worksheets("Sheet1").Range("C11").Copy
Worksheets("Sheet2").Range("A5").PasteSpecial Paste:=xlPasteFormats
End Sub

hth,

Ross
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,173
Members
453,021
Latest member
Justyna P

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