mahmed1
Well-known Member
- Joined
- Mar 28, 2009
- Messages
- 2,302
- Office Version
- 365
- 2016
- Platform
- Windows
Hi All,
Can you please advise where im going wrong
Im trying to copy all visible cells once filtered and paste into cell A2 but i can see that its missing several missing cells when copying and pasting over but i dont know why its doing that
This is my code
Application.GoTo wsSheet2.Range("A1"), False
Can you please advise where im going wrong
Im trying to copy all visible cells once filtered and paste into cell A2 but i can see that its missing several missing cells when copying and pasting over but i dont know why its doing that
This is my code
Application.GoTo wsSheet2.Range("A1"), False
VBA Code:
wsSheet2.Range("A1:T1").AutoFilter Field:=15, Criteria1:="<>0"
wsSheet2.Range("A1:T" & lRowCount).SpecialCells(xlCellTypeVisible).Offset(1).Select
Selection.Copy
wsSheet.Range("A2").PasteSpecial xlPasteValuesAndNumberFormats