Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Jawna Mansour   on Dec 04 In MS Office Category.

  
Question Answered By: Ivan Coleman   on Dec 04

Destination range  can not accomodate origin range, i.e destination range is
from AA2 to lastcolumn, but origin range is the entire row.


ActiveSheet.Cells.SpecialCells(xlCellTypeVisible).Rows.Copy _
Destination:=Range("A1") <====

or

ActiveSheet.UsedRange.Cells.SpecialCells(xlCellTypeVisible).Rows.Copy _ <<====
Destination:=Range("AA2")

Not tested.

Share: