Gathering, storing, passing a cell's format

jwk

New Member
Joined
Sep 9, 2011
Messages
4
Hello Excellists --

Does anyone know of a good way to 'hold' all the formatting that goes with a cell, or more specifically a large group of cells?

I want to take a group of cells and apply total formatting (font, fill, borders, etc.) to another group of cells. -- not copy | paste formats, please -- not what I'm after in this case.

The larger picture is that I am copying a range of cells to a variant array, then filtering this array to pass a subset to another array, then applying the second array to a range. To this range I would like to lay over the formatting from the original cells.

So I need an efficient way to transport a range of cells (size approx 400 rows x 400 columns) to another range, via code. I try to handle this kind of stuff in arrays, but haven't got a good way to get the whole format 'package' of a cell without looping through a bunch of its properties.

Thanks much!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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