Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Stepping through an autofiltered list
Hi All,
How can I make a cycle stepping through a list previously created with Autofilter? I need the row numbers of the list as well. Stefi |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Stepping through an autofiltered list
Dim rng as Range, rng1 as Range
Dim cell as Range set rng = activesheet.Autofilter.Range.columns(1) set rng = rng.offset(1,0).Resize(rng.rows.count - 1) On error resume Next set rng1 = rng.SpecialCells(xlVisible) On error goto 0 if not rng1 is nothing then for each cell in rng1 msgbox cell.Value & " - " & cell.row Next End If - "Stefi" wrote in message ... Hi All, How can I make a cycle stepping through a list previously created with Autofilter? I need the row numbers of the list as well. Stefi |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Stepping through an autofiltered list
Thanks, Tom! It works. It will take some time for me to understand exactly
why and how it works. Stefi €˛Tom Ogilvy€¯ ezt Ć*rta: Dim rng as Range, rng1 as Range Dim cell as Range set rng = activesheet.Autofilter.Range.columns(1) set rng = rng.offset(1,0).Resize(rng.rows.count - 1) On error resume Next set rng1 = rng.SpecialCells(xlVisible) On error goto 0 if not rng1 is nothing then for each cell in rng1 msgbox cell.Value & " - " & cell.row Next End If - "Stefi" wrote in message ... Hi All, How can I make a cycle stepping through a list previously created with Autofilter? I need the row numbers of the list as well. Stefi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Dynamic count on an Autofiltered list | Excel Discussion (Misc queries) | |||
Copying to an autofiltered list | Excel Discussion (Misc queries) | |||
Filling An Autofiltered List | Excel Programming | |||
Filling An Autofiltered List | Excel Programming | |||
Error stepping through Autofiltered visible range | Excel Programming |