Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Actual row of a filtered row
Hello Group,
I am using the auto filter and when I filter the list I would like to get the actual (blue) rows of the filtered data . Using .row I get the sequential row counting from row 1. Thanks, Michael Singmin |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Actual row of a filtered row
if you want to copy them, then the default is to copy only the visible rows
ActiveSheet.Autofilter.Range.Copy Destination:=Activesheet.Next.Range("A1") If you want a reference to them set rng = Activesheet.Autofilter.Range.Columns(1).Cells set rng = rng.offset(1,0).Resize(rng.rows.count-1) set rng1 = rng.Specialcells(xlVisible) if not rng1 is nothing then msgbox rng1.Entirerow.Address End if -- Regards, Tom Ogilvy "Michael Singmin" wrote in message ... Hello Group, I am using the auto filter and when I filter the list I would like to get the actual (blue) rows of the filtered data . Using .row I get the sequential row counting from row 1. Thanks, Michael Singmin |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Actual row of a filtered row
Thank you Tom,
Your code is always interesting to look at. But I was looking for this For Each fs In Range("A1:A500").SpecialCells(xlCellTypeVisible) Msgbox fs.row Next Cheers, Michael Singmin ================================================== ======= "Tom Ogilvy" wrote: if you want to copy them, then the default is to copy only the visible rows ActiveSheet.Autofilter.Range.Copy Destination:=Activesheet.Next.Range("A1") If you want a reference to them set rng = Activesheet.Autofilter.Range.Columns(1).Cells set rng = rng.offset(1,0).Resize(rng.rows.count-1) set rng1 = rng.Specialcells(xlVisible) if not rng1 is nothing then msgbox rng1.Entirerow.Address End if |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Why is the actual calculation different from actual sample | Excel Discussion (Misc queries) | |||
Return filtered values into report worksheet based on filtered valueon the data worksheet | Excel Worksheet Functions | |||
MORTGAGES and ACTUAL/360 | Excel Discussion (Misc queries) | |||
traversing through a filtered range based on another filtered range | Excel Programming | |||
Filtered Visible Rows & VBA Non-Filtered Rows Displayed | Excel Programming |