?
Solved

Unique

Posted on 2004-03-25
3
Medium Priority
?
322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 10683933
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
ID: 10683942
0
 
LVL 8

Accepted Solution

by:
ampapa earned 1500 total points
ID: 10684133
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

764 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