PC Review


Reply
Thread Tools Rate Thread

Check for Grouping and Ungroup

 
 
=?Utf-8?B?VHJvdWJsZWQgVXNlcg==?=
Guest
Posts: n/a
 
      21st Mar 2007
I need to check for sheet grouping and if grouped ungroup in VB. I can't
find how to test or reset other than on the page. Thanks.


 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      22nd Mar 2007
One way:

Public Sub try()
With ActiveWindow.SelectedSheets
If .Count > 1 Then
MsgBox "Ungrouping sheets"
.Item(1).Select Replace:=True
End If
End With
End Sub


In article <64533524-72E6-49DC-88D7-(E-Mail Removed)>,
Troubled User <(E-Mail Removed)> wrote:

> I need to check for sheet grouping and if grouped ungroup in VB. I can't
> find how to test or reset other than on the page. Thanks.

 
Reply With Quote
 
=?Utf-8?B?Um9uIENvZGVycmU=?=
Guest
Posts: n/a
 
      22nd Mar 2007
How about just clearing the outline.
If Grouping is ON, it will be turned off.
If it's already OFF....nothing happens.

Worksheets("Sheet1").UsedRange.ClearOutline

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Troubled User" wrote:

> I need to check for sheet grouping and if grouped ungroup in VB. I can't
> find how to test or reset other than on the page. Thanks.
>
>

 
Reply With Quote
 
=?Utf-8?B?Um9uIENvZGVycmU=?=
Guest
Posts: n/a
 
      22nd Mar 2007
Ooops! You said *sheet* grouping....not outline grouping.
My apologies.

***********
Regards,
Ron

XL2002, WinXP


"Troubled User" wrote:

> I need to check for sheet grouping and if grouped ungroup in VB. I can't
> find how to test or reset other than on the page. Thanks.
>
>

 
Reply With Quote
 
=?Utf-8?B?VHJvdWJsZWQgVXNlcg==?=
Guest
Posts: n/a
 
      22nd Mar 2007
Thanks. Worked great.

Any chance I could get you to look at my post entitled "Printing Assembled
Array Using Sheet Names"

Thanks.


"JE McGimpsey" wrote:

> One way:
>
> Public Sub try()
> With ActiveWindow.SelectedSheets
> If .Count > 1 Then
> MsgBox "Ungrouping sheets"
> .Item(1).Select Replace:=True
> End If
> End With
> End Sub
>
>
> In article <64533524-72E6-49DC-88D7-(E-Mail Removed)>,
> Troubled User <(E-Mail Removed)> wrote:
>
> > I need to check for sheet grouping and if grouped ungroup in VB. I can't
> > find how to test or reset other than on the page. Thanks.

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Box Grouping EllenM Microsoft Access Reports 5 4th Mar 2010 07:24 PM
No grouping in pivot table (?ungroup?) Colin Microsoft Excel Misc 3 27th Jan 2009 10:22 PM
Re: Check box grouping Doug Robbins - Word MVP Microsoft Word Document Management 0 20th Dec 2006 09:08 AM
Way to "ungroup" in grouping and sorting??? =?Utf-8?B?Um9zYQ==?= Microsoft Access 4 9th Sep 2005 07:05 PM
Using a grouping of cells to check one cell against another... =?Utf-8?B?ZGV1Y2Vy?= Microsoft Excel Worksheet Functions 1 11th Jan 2005 04:19 PM


Features
 

Advertising
 

Newsgroups
 


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