Hello All,
I use this codes to sort my list from small to large. But it sort cells with filling colors.
I want to remain stable color of cells. Only contents.
What can I do for it?
Thanks...
Please Login or Register to view this content.
Hello All,
I use this codes to sort my list from small to large. But it sort cells with filling colors.
I want to remain stable color of cells. Only contents.
What can I do for it?
Thanks...
Please Login or Register to view this content.
Last edited by jeffreybrown; 03-21-2020 at 09:39 AM. Reason: Please use code tags!
It would be easier to help and test possible solutions if you could attach a copy of your file. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). Also include a manual mock-up of the expected results in another sheet.
You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
Practice makes perfect. I'm very far from perfect so I'm still practising.
This temporarily stores the colors in offset 100 columns, sorts, then restores the original colors.
Please Login or Register to view this content.
Surround your VBA code with CODE tags e.g.;
[CODE]your VBA code here[/CODE]
The # button in the forum editor will apply CODE tags around your selected text.
What is your scheme for coloring the cells? One thing you could do without a VBA solution is to apply the colors based on absolute cell address using conditional formatting. You would need one rule for each different fill color. Sorting will not affect the "Applied To" range.
cfsort.JPG
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks