Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am filtering two separate data files by values contained in the column
titled 'City'. The position of this column in the 1st file is column 10, however it is in column 9 in the second file. The filter statement below works for the 1st file but not the 2nd. Selection.AutoFilter Field:=10, Criteria1:="=*" & Sheets("My Sheet").Range("A2").Value _& "*" I need a way to accomodate the two files with the same statement. I can find this column in both files using the names previously inserted by another routine. If I could determine the column number then I could set field = the derived column number. Any suggestions? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamically load DataValidation List through Source field? | Excel Worksheet Functions | |||
Auto Update of a field referencing to a field in another workbook | Excel Worksheet Functions | |||
Excel auto filter does not show all choices for the field? | Excel Discussion (Misc queries) | |||
Q: assign field background color dynamically according to field values | Excel Programming | |||
Dynamically changing a calculated field in Pivot Table | Excel Programming |