Remove Duplicates from range of cells in excel vba
问题 I'm trying to remove duplicates in excel 2013 VBA. but I'm getting error "object does not support this property or method". The problem is I don't have static range to select. I want remove duplicates from the column heaader 'abcd'. Cells.Find(what:="abcd").Activate ActiveCell.EntireColumn.Select Set rng = Selection ActiveSheet.rng.RemoveDuplicates 回答1: You need to tell the Range.RemoveDuplicates method what column to use. Additionally, since you have expressed that you have a header row, you