Godders199
Active Member
- Joined
- Mar 2, 2017
- Messages
- 313
- Office Version
- 2013
Hello, I am trying to work out the vba, to replace "pass" and "investment" with the cell location Sheet Instructions cell C26 and Sheet instructions C35 as these are drop down lists which can contain various options. I can find numerous examples where everything is contain on a single sheet, but not different sheets, if anyone has an example i would appreciate it.
Sheets("cases available ").Select
Cells.Select
ActiveSheet.Range("$A$:$AA$").AutoFilter Field:=11, Criteria1:= _
"=*Pass*", Operator:=xlAnd
ActiveSheet.Range("$A$:$AA$").AutoFilter Field:=27, Criteria1:= _
"=*investment*", Operator:=xlAnd
I also need to know the code, for if c26 is blank , then look at cell c32 on that sheet.
Thanks
Sheets("cases available ").Select
Cells.Select
ActiveSheet.Range("$A$:$AA$").AutoFilter Field:=11, Criteria1:= _
"=*Pass*", Operator:=xlAnd
ActiveSheet.Range("$A$:$AA$").AutoFilter Field:=27, Criteria1:= _
"=*investment*", Operator:=xlAnd
I also need to know the code, for if c26 is blank , then look at cell c32 on that sheet.
Thanks