P
PeteCresswell
I've been putting little buttons in the column headers of some of the
spreadsheets I create so the user can click the column header and have
the sheet sorted by values in that column.
Works pretty well.
But now the user wants that functionality on a sheet that may have
subtotals.
It works but, of course, the subtotals get blindly sorted depending on
the subtotal row headers as well as the "real" data in the same
columns - and now the user has a sheet that shows rows labeled as
subtotals, but whose amounts reflect some other range than what's
above them. It also pops "Circular Reference" errors periodically.
I guess I could somehow identify the subtotal lines and delete them
the first time the sort routine is invoked... but that would make the
subtotals sort of go "Poof!" before the user's eyes - with no
explaination.
Or maybe I could grey out the subtotal rows and change Font.Style to
something like StrikeThrough as part of the sort routine.
Anybody figured out a way to deal with this gracefully?
spreadsheets I create so the user can click the column header and have
the sheet sorted by values in that column.
Works pretty well.
But now the user wants that functionality on a sheet that may have
subtotals.
It works but, of course, the subtotals get blindly sorted depending on
the subtotal row headers as well as the "real" data in the same
columns - and now the user has a sheet that shows rows labeled as
subtotals, but whose amounts reflect some other range than what's
above them. It also pops "Circular Reference" errors periodically.
I guess I could somehow identify the subtotal lines and delete them
the first time the sort routine is invoked... but that would make the
subtotals sort of go "Poof!" before the user's eyes - with no
explaination.
Or maybe I could grey out the subtotal rows and change Font.Style to
something like StrikeThrough as part of the sort routine.
Anybody figured out a way to deal with this gracefully?