pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Hi, how can my vba count number of rows copied?
i want the msgbox to show the # counts after the whole thing is copied.
Thanks
Pedie
i want the msgbox to show the # counts after the whole thing is copied.
Thanks
Pedie
Code:
x = 1
y = 65500
c = 12
Application.ScreenUpdating = False
With Sheets("Sheet1")
For chk = x To y
If .Cells(chk, c).Value = "X" Then
.Cells(chk, c).Value = "Y"
.Cells(chk, c).Offset(0, -11).Resize(, 11).Copy Destination:=Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset(1)
End If
Next chk
End With