This macro requires that you do not have empty cells in the list range. The following sample macro searches a single list in the range A1:A100 and deletes all duplicate items in the list. Sample 1: Delete duplicate items in a single list Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. Applies to: Excel 2010, Microsoft Office Excel 2007, Microsoft Office Excel 2003.
How to use macro examples to delete duplicate items in a list in Excel