O
Oren
This code worked perfectly fine on Excel XP, but after
upgrading to Excel 2003 - I got an error (Paste method of
range class failed). When I check out the sheet, it
really does the paste job, but for some reason the error
pops up and stops the macro. Does anyone have a clue?
....
Sheets("All").Select
Selection.AutoFilter Field:=1
Selection.AutoFilter Field:=3
Selection.AutoFilter Field:=1, Criteria1:=section
Range("A1").Select
Range(Selection, ActiveCell.SpecialCells
(xlLastCell)).Select
Selection.Copy
Sheets(section).Select
Range("A1").Select
ActiveSheet.Paste <-------------- Error here!!!
Range("A3").Select
....
upgrading to Excel 2003 - I got an error (Paste method of
range class failed). When I check out the sheet, it
really does the paste job, but for some reason the error
pops up and stops the macro. Does anyone have a clue?
....
Sheets("All").Select
Selection.AutoFilter Field:=1
Selection.AutoFilter Field:=3
Selection.AutoFilter Field:=1, Criteria1:=section
Range("A1").Select
Range(Selection, ActiveCell.SpecialCells
(xlLastCell)).Select
Selection.Copy
Sheets(section).Select
Range("A1").Select
ActiveSheet.Paste <-------------- Error here!!!
Range("A3").Select
....