Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
When i do Custome autofillter for 'Mon' in Month Column, and if 'Mon' is not found then exit sub if found then copy the entire sheet. example: Month Mon Tue Wed Mon |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim rng As Range
Dim LastRow As Long Columns(1).AutoFilter LastRow = Cells(Rows.Count, "A").End(xlUp).Row Set rng = Range("A1").Resize(LastRow) rng.AutoFilter field:=1, Criteria1:="Mon" On Error Resume Next Set rng = rng.SpecialCells(xlCellTypeVisible) On Error GoTo 0 If rng.Rows.Count 1 Then Cells.Copy 'do something with it End If rng.AutoFilter -- __________________________________ HTH Bob "Ranjit kurian" wrote in message ... Hi When i do Custome autofillter for 'Mon' in Month Column, and if 'Mon' is not found then exit sub if found then copy the entire sheet. example: Month Mon Tue Wed Mon |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto filter custom filter | Excel Worksheet Functions | |||
Custom Auto Filter | Excel Discussion (Misc queries) | |||
Custom auto filter (Dates) | Excel Worksheet Functions | |||
Does anyone know how to tweak Custom Auto Filter box? | New Users to Excel | |||
Custom Auto Filter | Excel Programming |