Results 1 to 3 of 3

Group/ Ungroup in excel VBA

Threaded View

rajuganapathy Group/ Ungroup in excel VBA 02-29-2020, 11:34 AM
Richard Buttrey Re: Group/ Ungroup in excel... 02-29-2020, 12:41 PM
mehmetcik Re: Group/ Ungroup in excel... 02-29-2020, 12:56 PM
  1. #1
    Forum Contributor
    Join Date
    09-15-2011
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    135

    Group/ Ungroup in excel VBA

    Hello All,

    i have a small doubt, Plan to assign the macro Group and Ungroup in excel sheets. that sheets contains more then 40 excel sheets. i have tried the below macro. it's working the first option if i click again it's not bring back the old format.

    can you suggest me any idea how can i fix this. Thank you.

    #Sub Expand_All()
    If Range("A1").Value = True Then
    ActiveSheet.Outline.ShowLevels RowLevels:=2, ColumnLevels:=3
    Else
    ActiveSheet.Outline.ShowLevels RowLevels:=0, ColumnLevels:=0
    End If

    End Sub#

    Thanks
    Raju
    Last edited by rajuganapathy; 03-01-2020 at 10:47 AM. Reason: Solved

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using Excel Group / Ungroup with Protected Worksheet/Workbook
    By Lynn Porter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2013, 02:24 PM
  2. Group/Ungroup disabled in Pivot Table - Excel 2013
    By hutch100 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-13-2013, 07:25 PM
  3. Style + Group and Ungroup
    By MrSumitomo in forum Excel General
    Replies: 0
    Last Post: 08-10-2011, 04:21 AM
  4. Group/Ungroup
    By rz6657 in forum Excel General
    Replies: 1
    Last Post: 03-26-2009, 02:55 AM
  5. [SOLVED] On protected Excel sheet users be able to group/ungroup rows/colum
    By Oryssia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2006, 07:55 AM
  6. Help with Group/Ungroup
    By deacs in forum Excel General
    Replies: 3
    Last Post: 01-30-2006, 12:30 PM
  7. Replies: 1
    Last Post: 11-09-2005, 11:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1