Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
[HELP WITH ARRAY] Simple for you, very hard for me....please
Help please!!!!.
I have a simple array with name of cities in it. I have in the coloumn "A" a list of city's names. I should verify that every city included in the array can be found in the coloumn "A". How can I do that?. I believe with for, next array.count etc. but I have many difficulties.... Please help!!!!. Thanks in advance. Alex. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
[HELP WITH ARRAY] Simple for you, very hard for me....please
For i = LBound(ary) To UBound(ary)
If IsError(Application.Match(ary(i),Columns(1),0)) Then Msgbox ary(I) & " not found" End If Next i -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Alex" wrote in message oups.com... Help please!!!!. I have a simple array with name of cities in it. I have in the coloumn "A" a list of city's names. I should verify that every city included in the array can be found in the coloumn "A". How can I do that?. I believe with for, next array.count etc. but I have many difficulties.... Please help!!!!. Thanks in advance. Alex. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Simple for you, very hard for me....please
Alex wrote: I have a simple array with name of cities in it. I have in the coloumn "A" a list of city's names. I should verify that every city included in the array can be found in the coloumn "A". How can I do that?. I believe with for, next array.count etc. but I have many difficulties.... Hello Alex, Good evening. What is the delimiter used in the City Name Array? Anyway, you will be parsing the full array to get the individual names. Use a loop... Dim name() Dim iniLet for m= 0 to numberOfCitiesIntheBigArray inilet=Mid(name(m), 1, 1) if iniLet="A" then List1.additem name(m) Next m '...ListBox, or combo or text box whatever it is Hope this will help |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Simple for you, very hard for me....please
|
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Simple for you, very hard for me....please
|
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Simple for you, very hard for me....please
Bob Phillips ha scritto: For i = LBound(ary) To UBound(ary) If IsError(Application.Match(ary(i),Columns(1),0)) Then Msgbox ary(I) & " not found" End If Next i -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Alex" wrote in message oups.com... Help please!!!!. I have a simple array with name of cities in it. I have in the coloumn "A" a list of city's names. I should verify that every city included in the array can be found in the coloumn "A". How can I do that?. I believe with for, next array.count etc. but I have many difficulties.... Please help!!!!. Thanks in advance. Alex. Thank you very much. This works!. And it's a very powerful command (Application.Match) that will help me very much in the future. Thanks again, Alex. |
#7
Posted to microsoft.public.excel.programming
|
|||
|
|||
Simple for you, very hard for me....please
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
simple but hard question | Excel Discussion (Misc queries) | |||
simple but very hard question | Excel Discussion (Misc queries) | |||
Simple for you hard for me (newbie alert) | Excel Programming | |||
Simple data/Hard statistics | Excel Programming | |||
Simple but hard | Excel Worksheet Functions |