ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sorting a range loses formatted borders (https://www.excelbanter.com/excel-discussion-misc-queries/177778-re-sorting-range-loses-formatted-borders.html)

Jim Cone

Sorting a range loses formatted borders
 

Excel does not include borders when sorting, no matter what Excel version you use.
Also, conditionally formatted colors do not sort.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins - two dozen ways to sort with "Special Sort")




"Mick Jennings"
wrote in message
Hi all,
Recently started new job where the standard is Excel 2003 SP2.

I have a worksheet which is automatically populated and formatted from VBA,
based on data extracted from a directory-full of spreadsheets. All works ok,
except when I sort the resulting worksheet the borders don't move. Patterns
etc move fine, but the borders stay where they were, leaving an ugly mess.

Exactly the same happens whether the sort is triggered from code or from the
menus.
Anyone seen this before ?

Mick Jennings[_2_]

Sorting a range loses formatted borders
 
Thanks Jim. A few separate experiments confirms that. Seems a major oversight
to me, but at least I know.

"Jim Cone" wrote:


Excel does not include borders when sorting, no matter what Excel version you use.
Also, conditionally formatted colors do not sort.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins - two dozen ways to sort with "Special Sort")




"Mick Jennings"
wrote in message
Hi all,
Recently started new job where the standard is Excel 2003 SP2.

I have a worksheet which is automatically populated and formatted from VBA,
based on data extracted from a directory-full of spreadsheets. All works ok,
except when I sort the resulting worksheet the borders don't move. Patterns
etc move fine, but the borders stay where they were, leaving an ugly mess.

Exactly the same happens whether the sort is triggered from code or from the
menus.
Anyone seen this before ?


Jim Cone

Sorting a range loses formatted borders
 

Maybe an oversight; ...MS hears a different drummer. <g
My Special Sort add-in didn't overlook it.
Direct download at my website for the free 3 week trial.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Mick Jennings"
wrote in message
Thanks Jim.
A few separate experiments confirms that. Seems a major oversight
to me, but at least I know.



"Jim Cone" wrote:
Excel does not include borders when sorting, no matter what Excel version you use.
Also, conditionally formatted colors do not sort.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins - two dozen ways to sort with "Special Sort")




"Mick Jennings"
wrote in message
Hi all,
Recently started new job where the standard is Excel 2003 SP2.

I have a worksheet which is automatically populated and formatted from VBA,
based on data extracted from a directory-full of spreadsheets. All works ok,
except when I sort the resulting worksheet the borders don't move. Patterns
etc move fine, but the borders stay where they were, leaving an ugly mess.

Exactly the same happens whether the sort is triggered from code or from the
menus.
Anyone seen this before ?



All times are GMT +1. The time now is 08:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com