Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 , 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. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 , 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
No grouping in pivot table (?ungroup?) | Excel Discussion (Misc queries) | |||
How to ungroup ? | Excel Programming | |||
Help with Group/Ungroup | Excel Discussion (Misc queries) | |||
Using a grouping of cells to check one cell against another... | Excel Worksheet Functions | |||
Ungroup Sheets | Excel Programming |