Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I need a UDF (user defined function) that extracts the visible cells from a user defined range and gives a range of visible cells. I found this UDF on the internet. But it gives me some errors when I apply an AutoFilter to my table. Where's the mistake? Thanks in advance. ================================================ Function Vis(VisibleRange As Range) As Range Dim Cell As Range Application.Volatile Set Vis = Nothing For Each Cell In VisibleRange If Not (Cell.EntireRow.Hidden Or Cell.EntireColumn.Hidden) Then If Vis Is Nothing Then Set Vis = Cell Else Set Vis = Union(Vis, Cell) End If End If Next Cell End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I include only visible cells in a range? | Excel Worksheet Functions | |||
Copy only Visible Cells of a Variable Range... | Excel Programming | |||
Sum only visible cells within a range. | Excel Programming | |||
Select only visible cells in a selected range | Excel Programming | |||
Trying to select the visible range of cells | Excel Programming |