I have a 3 level outline and I'd like to have all 2nd level groupings
collapsed by default. The private 'collapse' variable gave me hope
initially but after trying various things to set it, I haven't had
much luck. Is there any way to get around this?
Colin wrote: > I have a 3 level outline and I'd like to have all 2nd level groupings > collapsed by default. The private 'collapse' variable gave me hope > initially but after trying various things to set it, I haven't had > much luck. Is there any way to get around this?
I haven't had any problems with this. Can you provide a small code example that shows the behaviour you're unhappy with?
> Colin wrote:
> > I have a 3 level outline and I'd like to have all 2nd level groupings
> > collapsed by default. The private 'collapse' variable gave me hope
> > initially but after trying various things to set it, I haven't had
> > much luck. Is there any way to get around this?
> I haven't had any problems with this. Can you provide a small code
> example that shows the behaviour you're unhappy with?
> On Oct 20, 10:37 am, Chris Withers <ch...@simplistix.co.uk> wrote:
> > Colin wrote:
> > > I have a 3 level outline and I'd like to have all 2nd level groupings
> > > collapsed by default. The private 'collapse' variable gave me hope
> > > initially but after trying various things to set it, I haven't had
> > > much luck. Is there any way to get around this?
> > I haven't had any problems with this. Can you provide a small code
> > example that shows the behaviour you're unhappy with?
>> Would like all the items to be collapsed initially, hiding all of >> their grouped transactions.
> I may have been unclear. My question is.. how do I go about collapsing > a group outline? Is it even possible?
Hmm, I would have guessed that the .collapse attribute of the relevant rows would need to be set to 1. However, I just tried that and it had no effect.
> Colin wrote: >>> Would like all the items to be collapsed initially, hiding all of >>> their grouped transactions. >> I may have been unclear. My question is.. how do I go about collapsing >> a group outline? Is it even possible?
> Hmm, I would have guessed that the .collapse attribute of the relevant > rows would need to be set to 1. However, I just tried that and it had no > effect.
> I wonder if John can enlighten both of us?
The latest MS docs says this of the "collapse" bit: "A bit that specifies whether the rows that are one level of outlining deeper that the current row are included in the collapsed outline state".
OOo docs: "1 = Outline group starts or ends here (depending on where the outline buttons are located, see SHEETPR record, ➜5.97), /and/ is collapsed"
How's that for enlightenment? Not much?
A bit of gnireenigne esrever reveals that manually collapsed rows also have the "hidden" bit set.
Something like this should do what Colin wants to do:
However, unless I'm seeing things, if you comment out the statement setting row.collapse (i.e. using only row.hidden), the same effect is obtained. Somebody needs to do some more experimentation ... I can't spend any more time on it right now.