VBA

Moderators: PavlinII
Number of threads: 1673
Number of posts: 3078

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Unique data Posted by ilgamer on 19 Jan 2009 at 11:56 AM
Hi,

I have data in a particular column that could potentially repeat itself down the colum. I'd like to get the column to copy and paste unique data from that column into another. So far, I have sorted the original data in ascending order and autofiltered but then the data at the top of the column does not come out to be unique. However, all the other data become unique after auto filter. Can you think of a way to make my data completely unique? I am trying to automate this via VBA

Pls let me know if you need clarification on anything.

thanks
Report
Re: Unique data Posted by shasur on 20 Jan 2009 at 4:07 AM
Can you try something similar to following

Range("A:A").AdvancedFilter Action:=xlFilterInPlace, Unique:=True

Cheers
Shasur

VBA Tips & Tricks (http://vbadud.blogspot.com)

C# Code Snippets (http:dotnetdud.blogspot.com)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.