I have a macro which "chops up" spread sheets, allowing the user to select columns they want to keep. As well as selection criteria to filter columns for values and date ranges.
The macro works fine, however when I tried to process a 190MB file I got an
error: 1004 copy method of range class failed
The line it failed on was:
Selection.SpecialCells(xlCellTypeVisible).Copy Destination:=Export.Sheets("Sheet1").Range("A1")
I've tried splitting the code up and it still didn't work. (see below)
Selection.SpecialCells(xlCellTypeVisible).Copy
Export.Sheets("Sheet1").Range("A1").Select
Export.Sheets("Sheet1").Range("A1").Paste
The full file can be found here: https://quickfileshare.org/9th/Big_Choppa_-_V4_JB1_Test.xlsm