I have been trying to find out what error is in this code, but no luck whatsoever. I keep getting
RUN_TIME Error '1004'
Select Method of Range Class Failed
When I try to debug, it highlight in yellow where the error is coming from.
Can anyone help me out...please
Thanks,
RUN_TIME Error '1004'
Select Method of Range Class Failed
Code:
Set book = Workbooks.Open("C\FileName.xls
With book.Sheets(2).Range("F1")
.AutoFilter
.AutoFilter Field:=7, Criteria1:="411"
[b][y] .CurrentRegion.Select[/b][/y]
.Copy
End With
When I try to debug, it highlight in yellow where the error is coming from.
Can anyone help me out...please
Thanks,