#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Find Method

Hello All,

I have a data of City & Zip Codes. I want to find out Zip Codes of same
city if the city name occures more than one & display that Zip Codes in
List Box.

For E.g

ANCHORAGE is the city Name and it has Two Zip Codes like 97205 & 97206
I want to find ANCHORAGE city & related Zip Codes & display that zip
codes in list box.


Thanks,

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Find Method

On a userform?

sCity = "ANCHORAGE"
Listbox1.Clear
For Each cell In Worksheets("Sheet1").Range("A1:A100")
If cell.value = sCity Then
Listbox1.AddItem cell.Offset(0,1).Value
Next cell
Next cell

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Snowy" wrote in message
ups.com...
Hello All,

I have a data of City & Zip Codes. I want to find out Zip Codes of same
city if the city name occures more than one & display that Zip Codes in
List Box.

For E.g

ANCHORAGE is the city Name and it has Two Zip Codes like 97205 & 97206
I want to find ANCHORAGE city & related Zip Codes & display that zip
codes in list box.


Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Find Method

Hello Bob,

Thank you,
Code is working.

Regards,
Swapnil Jiwane

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
date find using find method x taol Excel Programming 2 December 22nd 05 09:51 AM
Using variables to make a date and using find method to find that. KyWilde Excel Programming 2 April 21st 05 09:43 PM
Find method nk Excel Programming 2 April 16th 05 01:50 PM
Find method Ron de Bruin Excel Programming 0 September 22nd 04 09:25 PM
Help with the Find method Mike NG Excel Programming 3 August 4th 03 07:15 PM


All times are GMT +1. The time now is 09:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"