LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default macro to show / hide grouping, linked to label button

Victor presented the following explanation :
yes, I'm sure that there's a simple answer. No reason for this to be complex.

All you need is:

-find the start of the next group relative to an active cell


I use helper cells in a hidden column for this. Very simple coding that
makes use of local-scope defined names. It's the events handler class
that poses difficulties for most people, but you could use dedicated
menuitems on the Tools menu (or your own menu) if you don't need your
own right-click popup menu.

-find where setting for whether the summary row is at the top / bottom of the
group

Not necessary when the setting is already set since it can't be done on
a 'per group' basis (AFAIK, this is a sheetwise setting). This is a
simple matter of incrementing/decrementing the OutlineLevel for the
selected group[s]. My project just has one level to deal with, but I
coded for using more.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


 
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
Hide Rows or Columns with +/- button above row/column label headin WA Excel Worksheet Functions 3 April 5th 23 02:42 PM
How to show and hide a picture on a button at runtime? Mark Stephens Excel Programming 2 January 20th 09 08:23 AM
hide or show a series with a button Craig Charts and Charting in Excel 1 December 6th 07 04:36 AM
Show / Hide Label O.... Excel Programming 1 October 4th 07 07:15 PM
hide and show columns using one control button dreamkeeper Excel Programming 8 March 3rd 06 03:16 AM


All times are GMT +1. The time now is 01:44 AM.

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"