I have a master list, and a detail list.
From detail list, I want to delete items that are not on master list.
i am using below code.
Is there a faster way to achieve this?Please Login or Register to view this content.
Thanks
Ajay
I have a master list, and a detail list.
From detail list, I want to delete items that are not on master list.
i am using below code.
Is there a faster way to achieve this?Please Login or Register to view this content.
Thanks
Ajay
Hi Ajay,
Why not create a Helper column on the detail sheet that does a Match of the list on the Master. It will come back with either a number, showing it is on the master; or an error in that helper column.
Then you can only deal with a single detail sheet and remove rows where the helper column is an error. I think that would be much quicker than your above.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Or you can make use of dictionaries.
https://www.excelforum.com/excel-pro...ml#post4693781
Last edited by bakerman2; 07-16-2017 at 04:11 AM.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
Thanks for your inputs.
I found
to be fastest of all options I tried to populate helper column.Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks