Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I try to create a truncated range: the new range shoulsd contain only values greater than FilterMinValue The following code does the job but is quite slow. Is there some fastest way to get the new range? For Each cell In RangeAddress If cell.Value = FilterMinValue Then If rng Is Nothing Then 'initialize rng with first found cell Set rng = cell Else 'expand the found range variable Set rng = xlApp.Union(rng, cell) End If End If Next cell Thanks a lot Avi |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe you could apply data|filter|autofilter and filter to show only the values
= filterminvalue. Then you could use specialcells(xlcelltypevisible) to get the range??? avi wrote: Hello, I try to create a truncated range: the new range shoulsd contain only values greater than FilterMinValue The following code does the job but is quite slow. Is there some fastest way to get the new range? For Each cell In RangeAddress If cell.Value = FilterMinValue Then If rng Is Nothing Then 'initialize rng with first found cell Set rng = cell Else 'expand the found range variable Set rng = xlApp.Union(rng, cell) End If End If Next cell Thanks a lot Avi -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Speed Issue | Excel Discussion (Misc queries) | |||
Speed Issue after updating cells | Excel Discussion (Misc queries) | |||
Searching through text - Speed issue | Excel Programming | |||
Speed issue with Multilple Web Queries | Excel Programming | |||
Calculation speed issue | Excel Discussion (Misc queries) |