Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Data Outlining



I have a spreadsheet that organizes data into an outline. When I expand
an outline group to edit the data in the cells I have a button that,
when clicked, writes the date the changes were made to the row. I only
want to process the expanded rows when the "process Updates" button is
clicked. I can't figure out how to detect whether a row is expanded
outline range of rows to set the date. I have tried to use the visible
and hidden properties but can't seem to find the correct command that
will let me test them.
Here is what I have tried so far trying to get te row numbers that are
visible when an outline is expanded.
Private Function GetRange() As Range
Dim Rng As Range, RowNbr, temp, s
AutoFilter is on
Set Rng = ActiveSheet.AutoFilter.Range
RowNbr = Rng.Rows.Count
Set Rng = Intersect(Rng, Range("A:A"))
Set Rng = Rng.Offset(1, 0).Resize(Rng.Rows.Count – 1
RowNbr = Rng.Rows.Count
temp = Split(Rng.Address, ",")
'Set GetRange = Rng 'sets the array to the visible rows
Set GetRange = Rng.SpecialCells(xlVisible)
RowNbr = GetRange.Rows.Count

'Set GetRange =
Range("Task_Table1!_FilterDatabase").SpecialCells( xlCellTypeVisible)

End Function
I am able to pull out 36 address ranges but if I have more I only get
the first 36. I haven't found anything that says the
specialcells(xlvisible) properties have a limit but it is very
repeatable with the commands above.


--
Stangard
------------------------------------------------------------------------
Stangard's Profile: http://www.thecodecage.com/forumz/member.php?userid=441
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=109091

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grouping and Outlining in Excel using sheet protection Rich Excel Discussion (Misc queries) 2 March 19th 09 07:28 PM
Grouping/Outlining in Excel 2003 with Protection turned on Rich Excel Discussion (Misc queries) 1 March 19th 09 03:20 PM
Subtotal and outlining Abe[_2_] Excel Discussion (Misc queries) 7 November 7th 08 06:54 PM
How do you change the "cursor outlining" around the box in Excel Upper/Lower Case button Publisher 2003 Excel Discussion (Misc queries) 3 February 16th 06 07:34 PM
Outlining -- VBA Macro Package for Excel? David Lewis[_2_] Excel Programming 0 June 4th 05 03:58 PM


All times are GMT +1. The time now is 05:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"