Loop Help

bayles

Board Regular
Joined
Oct 31, 2013
Messages
54
Hi all,

I have a spreadsheet that is a data set from one person, then a second person checks over the data and makes changes. The code below is comparing the final vs input data. But it is taking a long time to process and I know there is a more efficient way to write this code but it is beyond my skills.

Any increases in efficiency appreciated.

Thanks
Ryan


Sub TEST ()


For i = 1 To Application.WorksheetFunction.CountA(Sheets("DP FILE").Range("A7:A10000"))

If IsError(Application.VLookup(ActiveCell, Sheets("DATA ENTRY").Range("A7:A10000"), 1, False)) = True Then

Range(ActiveCell, ActiveCell.Offset(0, 24)).Copy
Sheets("LEARNING").Select
Range("A10000").End(xlUp).Offset(1, 0).Select
ActiveSheet.Paste

Sheets("DP FILE").Select
End If


ActiveCell.Offset(1, 0).Select
Next i
End sub
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top