hi,
i am using this code to copy data and paste at other workbook,
but it is very slow.
need help
Code
Sub ExcelToTally_V2()Dim r As Range
Set r = Sheet15.Range("D3")
If r.Value > 0 Then
Dim sh1 As Worksheet
Set sh1 = ActiveWorkbook.Worksheets("V2")
Windows("Vouchers - Purchase Transactions With StockItems.xlsm").Activate
On Error Resume Next
With sh1
.Range("C5:C54").SpecialCells(xlCellTypeVisible).Copy
Range("D" & Rows.count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues
.Range("E5:E54").SpecialCells(xlCellTypeVisible).Copy
Range("F" & Rows.count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues
.Range("F5:F54").SpecialCells(xlCellTypeVisible).Copy
Range("H" & Rows.count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues
.Range("G5:G54").SpecialCells(xlCellTypeVisible).Copy
Range("J" & Rows.count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues
.Range("H5:H54").SpecialCells(xlCellTypeVisible).Copy
Range("E" & Rows.count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues
.Range("I5:I54").SpecialCells(xlCellTypeVisible).Copy
Range("C" & Rows.count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues
End With
Else
Exit Sub
End If
Display More