Pquigrafamos
New Member
- Joined
- Sep 8, 2021
- Messages
- 18
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hello,
I am currently working on a project where filtered lists with more than 73000 rows are copied into another sheet, this way isolating the relevant rows.
From the original 73000, about 61000 rows are transported to the new tab.
My code works, but it takes way too much time to finish this operation:
Can someone advise me on a better way to do this action?
I am currently working on a project where filtered lists with more than 73000 rows are copied into another sheet, this way isolating the relevant rows.
From the original 73000, about 61000 rows are transported to the new tab.
My code works, but it takes way too much time to finish this operation:
VBA Code:
Dim Cop1 As Range 'Will be the range to be copied from the filtered tab, from A1 until M(last row).
Dim ws1 As Worksheet 'Will be the tab where the filtered data is isolated.
Set Cop1 = Range(Cells(1, 1), Cells(nRow, 13))
Set ws1 = Sheets.Add(After:=Sheets(InshM))
ws1.Name = "Output_1"
Cop1.Copy ws1.Cells(1, 1)
Can someone advise me on a better way to do this action?