Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Autofilter - =string in selected cell
Sub Autofilter()
Selection.AutoFilter Field:=5, Criteria1:= _ "=NPF", Operator:=xlAnd End Sub How can I amend above code to replace NPF with the contents of my active cell (E.g either by Application.InputBox type := ??? or replace NPF by activecell.content ???) Thxs |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Autofilter - =string in selected cell
did you try activecell.value ?
-- Gary "al007" wrote in message ps.com... Sub Autofilter() Selection.AutoFilter Field:=5, Criteria1:= _ "=NPF", Operator:=xlAnd End Sub How can I amend above code to replace NPF with the contents of my active cell (E.g either by Application.InputBox type := ??? or replace NPF by activecell.content ???) Thxs |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Autofilter - =string in selected cell
Yes - I managed to make it work with active value but not if selected
filter contains date - Can anybody help pls. Thxs |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Autofilter - =string in selected cell
You could try
activecell.value2 as your criteria. al007 wrote: Yes - I managed to make it work with active value but not if selected filter contains date - Can anybody help pls. Thxs -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
function to reference value selected with autofilter | Excel Worksheet Functions | |||
Applying an AutoFilter to a string | Excel Discussion (Misc queries) | |||
Why does AutoFilter display rows NOT selected from drop down box? | Excel Discussion (Misc queries) | |||
Autofilter selected arrow color | Excel Worksheet Functions | |||
Find out what is selected for AutoFilter | Excel Programming |