PDA

View Full Version : Call Method Remove Duplicates from VBA



raycini
06-13-2011, 08:35 AM
Hi,

I am trying to call method removeDuplicates from VBA but it is not working. Here is the code

ActiveSheet.Range("AA2:AA15").removeDuplicates

I have search on Excel help but the code shown in the example is as pasted here.

Do you have an idea of what is wrong.

Thanks

ray

Kenneth Hobs
06-13-2011, 10:52 AM
Welcome to the forum!

You will need the first parameter:
ActiveSheet.Range("AA2:AA15").removeDuplicates Columns:=Array(1)

raycini
06-16-2011, 04:05 AM
Thanks Kenneth :)

Ray

محتاج2010
06-16-2011, 11:31 AM
You are very professional. Thank you very much













Welcome to the forum!

You will need the first parameter:
ActiveSheet.Range("AA2:AA15").removeDuplicates Columns:=Array(1)