zabiullakhan
Active Member
- Joined
- Aug 30, 2010
- Messages
- 310
Hi am geting an error when i try to copy the visable rows only however i get an error 1004 on line marked red.. please help
Code:
For Col = 1 To LastColumn
Value = Cells(1, Col).Value
If InaCols.Exists(Value) Then
Cells(2, Col).Select
Range(Selection, Selection.Offset(LastInfoRow, 0)).Select
[COLOR=red] Selection.SpecialCells(xlCellTypeVisible).Copy
[/COLOR] 'Selection.Copy
InaData.Cells(6, InaCols(Value)).PasteSpecial xlValue
Application.CutCopyMode = False
End If
Next