Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Group Status

Status
Not open for further replies.

OzzieOwl

Technical User
Dec 13, 2001
45
0
0
GB
I'm not sure if this is possible, but here goes anyway.
I have an Excel Spreadsheet that has data grouped, I need to be able to detect the group status, ie expanded or supressed, does anyone out there know how to pick up this in VBA. Cheers Ozzie

 
Hey Ozzie,

rows(n).showdetail

will return a true or false

i.e.

loop through rows and determine if group is expanded or not

Dim rownumber

For rownumber = 1 to 100 ' or whatever
If Rows(rownumber).Showdetail = True then
'insert code here for if detail is expanded
Else
'insert code here for if detail is not expanded
end if
Next


Dan

"It's more like it is now, than it ever has been."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top