vijay.vizzu
Member
Dear All,
Below my code gives error while executing. Initially it works fine for me,but suddenly it starts giving error. I can't able to trace out the error. Please help me to resolve this error. If i will copy and paste the code in another sheet,it works but current workbook it not.
[pre]
[/pre]
Run-time error '1004':
Application-defined or object-defined error
Regards
Vijay
Below my code gives error while executing. Initially it works fine for me,but suddenly it starts giving error. I can't able to trace out the error. Please help me to resolve this error. If i will copy and paste the code in another sheet,it works but current workbook it not.
[pre]
Code:
Sub ApplyFilter()
Sheets("filters").Select
Range("b6").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Clear
Range("b6").Select
Worksheets("087(2GS1)").Range("fltRange").AdvancedFilter _
Action:=xlFilterCopy, _
criteriarange:=Worksheets("Filters").Range("fltCriteria"), _
copytorange:=Range("b6"), _
unique:=False
Range("b7").Select
MsgBox ("Total No. of Records: " & Range(Selection, Selection.End(xlDown)).Count)
End Sub
Sub Filter_087A()
Sheets("filters").Select
Range("b6").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Clear
Worksheets("087(2WS1)").Range("fltRange_087A").AdvancedFilter _
Action:=xlFilterCopy, _
criteriarange:=Worksheets("Filters").Range("fltCriteria"), _
copytorange:=Range("b6"), _
unique:=False
Range("b7").Select
MsgBox ("Total No. of Records: " & Range(Selection, Selection.End(xlDown)).Count)
End Sub
Run-time error '1004':
Application-defined or object-defined error
Regards
Vijay