Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to access the Advanced Filter Programmatically. I have a crude
macro that runs to completion but falters on: y.Range("C2").Formula = "=" & "OR(Source!J2<" & """""" _ & "," & "AND" & "(Source!K2<" & """""" _ & ",Source!K2<" & "" & """Consumer""" & "))" & "" This is what ends up in the cell: =OR(Source!#REF!<"",AND(Source!#REF!<"",Source!# REF!<"Consumer")) It should be: =OR(Source!J7<"",AND(Source!K7<"",Source!K7<"Co nsumer")) How can I rewrite this so it will create a working formula in the cell? I know criteria work because I can run the Advanced Filter successfully if I do it manually. -- tj |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula to find the filter criteria | Excel Worksheet Functions | |||
Advanced Filter criteria (formula) | Excel Worksheet Functions | |||
Filter criteria | Excel Discussion (Misc queries) | |||
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du | Excel Worksheet Functions | |||
Filter Criteria | Excel Programming |