Link to home
Start Free TrialLog in
Avatar of Sachin Singh
Sachin Singh

asked on

Conditionally copy paste the data between sheets

Conditionally copy paste the data between sheets
plz see the sample file
sample.xlsb
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sachin Singh
Sachin Singh

ASKER

Thnx Neeraj Sir for ur great support
You're welcome Sachin!
You really did not need to loop. This one liner could have done the same job.

Sub copymultiple()
Sheet5.Range("A1").CurrentRegion.EntireRow.Copy Sheet4.Range("A1").Resize( _
    (Sheet2.Range("A1").CurrentRegion.Rows.Count - 1 + _
    Sheet3.Range("A1").CurrentRegion.Rows.Count - 1) * _
    Sheet5.Range("A1").CurrentRegion.Rows.Count)

End Sub

Open in new window

Thnx Saqib Sir for the great info and thnx for the support