Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I have the following code, how come I get the value of 1 everytime i do
rng.rows.count (which is wrong)? Im using rng.rows.count in another private function. Thanks in advance Public Sub RangeFind() Dim shtName As String Dim wShData As Worksheet shtName = ActiveSheet.Name Set wShData = ActiveWorkbook.Worksheets(shtName) With wShData.AutoFilter.Range On Error Resume Next Set rng = .Offset(1, 0).Resize(.Rows.Count - 1, ..Columns.Count).SpecialCells xlCellTypeVisible) On Error GoTo 0 End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
autofilter row count | Excel Programming | |||
AutoFilter Row Count | Excel Programming | |||
AutoFilter and row count | Excel Discussion (Misc queries) | |||
Autofilter and Cell Count | Excel Programming | |||
Autofilter record count | Excel Discussion (Misc queries) |