Hi all,
I have an advanced filter that gets it's data from one sheet (ImportSh) , its' criteria from another (ShtName) and puts the output to a third sheet (TempData)
This is the code I've got
But I get a 'type mismatch' error.
I'm thinking it's because its not fully qualified.
Can anyone help?
Thanks,Nigel
I have an advanced filter that gets it's data from one sheet (ImportSh) , its' criteria from another (ShtName) and puts the output to a third sheet (TempData)
This is the code I've got
Code:
ImportSh.Columns("E:L").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets(ShtName).Range("A1:A2"), CopyToRange:=Sheets(TempData).Range("A1:H1") _
, Unique:=False
But I get a 'type mismatch' error.
I'm thinking it's because its not fully qualified.
Can anyone help?
Thanks,Nigel