-1

In theory I can just use the specialcells method to copy visual cells after filtering into a new sheet, but I am getting an error:

MasterList.Range("$A$1:$AK$" & RowCountTotal).SpecialCells(xlCellTypeVisible).Copy TemporaryWorksheet.Cells("A1")

How would I copy these visual cells in the masterlist into the temporary worksheet?

orange123
  • 75
  • 1
  • 7
  • Run time error 5, invalid procedure call or argument – orange123 Mar 16 '21 at 16:05
  • With the changes that Tim suggested, I am getting Run Time Error 1004, Select Method of Range class failed – orange123 Mar 16 '21 at 16:12
  • [You should avoid Select](https://stackoverflow.com/questions/10714251/how-to-avoid-using-select-in-excel-vba) but there's no way to help you further as it seems another line is throwing that error. – BigBen Mar 16 '21 at 16:54

1 Answers1

0
Cells("A1") 

should be

Range("A1") 

or

Cells(1, "A")
Tim Williams
  • 154,628
  • 8
  • 97
  • 125