Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Click-Sort Button: Dealing With Now-Irrelevant Subtotals?

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?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default Click-Sort Button: Dealing With Now-Irrelevant Subtotals?

Per PeteCresswell:

Anybody figured out a way to deal with this gracefully?


I wound up just deleting those rows - passing a couple of
locator/identifier parms to the VB code that created the routine
in the .XLS.

Only tricky part was preserving any border around the data area
if there happened tb a subtotal line at the bottom of said area.

If anybody cares, there's a downloadable sample of a .XLS at
www.wchs59.com/ClickSortSample.xls

Note that the center sheet doesn't have a border at the bottom to
begin with... it's not the click/sort routine that's losing it.
--
PeteCresswell
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a list of job numbers, missing out irrelevant items DDawson Excel Worksheet Functions 9 December 18th 07 01:42 AM
sort subtotals? dlw Excel Discussion (Misc queries) 1 February 22nd 07 11:13 PM
irrelevant msgs Patricia Shannon Excel Programming 2 March 31st 06 03:44 PM
Create floating button based on button click in menu ExcelMonkey Excel Programming 2 October 12th 05 06:43 PM
Sort in Subtotals JUAN Excel Programming 3 August 8th 04 10:54 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"