Solved

Unique

Posted on 2004-03-25
3
315 Views
Last Modified: 2010-05-01
Hi,

Can anybody tell me how to do this..

I have a excel sheet.I need to search a column and get the unique values of the column into an array..

After getting them into the array...i have to display the values of the array in msgbox and then i have to search inside the array if 192.168.1.1 is found or not..if it is found i have to remove it from the array...

Can anybody help me..

Regards
Hari
0
Comment
Question by:sri_hari1986
  • 2
3 Comments
 
LVL 48

Expert Comment

by:Mikal613
Comment Utility
Well i would use ado to select the distinct values from the excel ss and then loop through the recordset to see if the ip is there
0
 
LVL 48

Expert Comment

by:Mikal613
Comment Utility
0
 
LVL 8

Accepted Solution

by:
ampapa earned 500 total points
Comment Utility
Well you could do this 2 ways, pure coding or a hybrid.

Use the Advanced filter and you can copy your range of data to a new location with "unique" records selected and then use VBA to creat an array of those items.

or

try this link: http://www.experts-exchange.com/Applications/MS_Office/Excel/Q_20800399.html?query=unique+array&searchType=topic

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now