+ Reply to Thread
Results 1 to 4 of 4

Any way to determine width of Data Group panel

Hybrid View

  1. #1
    Registered User
    Join Date
    06-23-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Any way to determine width of Data Group panel

    In excel, when you group:
    rows, data grouping levels are shown in a frame to the left of row numbers
    columns, data grouping levels are shown in a frame above column letters


    Is there a way to determine the width/height of the frame added to excels window?

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Any way to determine width of Data Group panel

    If you know the cell ranges for the groups the theis method will give you the width and height.

    Sub t()
    MsgBox Range("A2:D2").Width
    MsgBox Range("A2:A10").Height
    End Sub
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    06-23-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Any way to determine width of Data Group panel

    Thanks, but I think you misunderstood the question.
    Your routine provides height of grouped say rows.
    I'm after changes made to the width of the excel window frame when rows are grouped.
    That part of the frame that shows the + & - signe to expand & collapse rows.

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Any way to determine width of Data Group panel

    Quote Originally Posted by jkm View Post
    Thanks, but I think you misunderstood the question.
    Your routine provides height of grouped say rows.
    I'm after changes made to the width of the excel window frame when rows are grouped.
    That part of the frame that shows the + & - signe to expand & collapse rows.
    I haven't worked with Groups that create the frames you are describing, but you can probably use this before and after and if there is a difference in the numbers, then that should be the the added frame.

    Sub t()
    MsgBox ActiveWindow.UsableWidth
    MsgBox ActiveWindow.UsableHeight
    End Sub
    If that does not give you what you need, I have no other suggestions.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Panel Bar Chart Gap's Width
    By jp16 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-27-2017, 05:41 AM
  2. [SOLVED] How do I determine which fonts are fixed width?
    By kadeo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-27-2015, 02:55 PM
  3. Determine Age Group for each Race Participant
    By Leigh Stewart in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-15-2013, 08:14 PM
  4. [SOLVED] Look up value then determine group then copy group to different worksheet.
    By kkezir in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-01-2013, 01:35 PM
  5. Replies: 1
    Last Post: 12-22-2007, 11:52 AM
  6. Can VBA determine if a cell/range is in a group?
    By BlindGuardian in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-10-2005, 03:12 PM
  7. Open JPG and determine pixel width in VB?
    By Joe HM in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-25-2005, 01:06 PM

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