Keep formatting after a sort is performed....

wotonka

Board Regular
Joined
Aug 6, 2002
Messages
142
I have a worksheet with grouped / similar cells highlighted with unique fill colors and the same groups of cells have a box outlining the perimeter of the groups.

So for example:
Cells D3:D4 are yellow, contain the value "15" and have an outline box drawn around their overall group
Cell D5 is green, contains the value "12" and has an outline box drawn around it
Cells D6:D7 are blue, contain the value "3" and have an outline box drawn around their overall group

If I sort the above cells based on cell contents, the fill colors do seem to move with the sorted cells, but the outline boxes do not. In other words, the outline boxes do not seem to move at all with the "sort".

Short of writing some VBA code to put the outline boxes around the right group of cells after the completed sort, does anyone know of a way to get the outline boxes to move with the sorted cells ??

Finally, some of the cells contain conditional formatting. It seems the conditional formatting stays with the original address of the cells, but this formatting unfortunately does not move with the newly placed cell after the sort has finished. Is there a way to get the formatting to move with the cells that have been sorted?


Thanks in advance for any help you may offer.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,224,521
Messages
6,179,282
Members
452,902
Latest member
Knuddeluff

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