Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This code works just fine based off of a command button. The problem is when
you have criteria in the cells and the data is filtered, if you delete one of the criteria options while it is filtered and try to filter it again, the macro breaks. I have made this work by using a filter and unfilter button but my curiosty has been spiked. The code is specific in saying that cells b2,c2,and d2 must all be blank. I am not sure what error handling might help this issue. Thank you for your help. If IsEmpty(Range("b2")) And IsEmpty(Range("c2")) And IsEmpty(Range("d2")) Then ActiveSheet.ShowAllData Else Range("A13:N18754").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _ Range("B1:D2"), Unique:=False End If Tim Peter |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
deleted text character returning numbers when deleted. | New Users to Excel | |||
Can a sub be deleted via macro? | Excel Programming | |||
Hard breaks in text to soft breaks in Excel | Excel Discussion (Misc queries) | |||
Macro Deleted | Excel Discussion (Misc queries) | |||
Module to set Page Breaks based on criteria through code | Excel Programming |