Hi would anyone have a faster macro than the following ,to copy data to sheet in current workbook and data to other workbook.
Current macro screen flickers alot when its ran.
Thanks
Current macro screen flickers alot when its ran.
Thanks
VBA Code:
Sub copy_to_workbooks()
Dim i As Long
For i = 1 To 81
With Sheets(CStr(i))
If LCase(.Range("vZ2").Value) = "yes" Then
.Range("vW86:xa106").Copy
Sheets("COPY").Range("e" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlFormats
Sheets("COPY").Range("e" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues
Workbooks("book2").Sheets("data").Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlFormats
Workbooks("book2").Sheets("data").Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues
.Range("A1:BM76").Copy
Workbooks("book2").Sheets("collect").Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues
End If
End With
Next i
End Sub