Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Clarification of the use of Find in VBA

Clarification of the use of Find in VBA

Clarification of the use of Find in VBA


I need to populate a zipcode column and a county column in my table given only the city and state. I have a table which lists a zipcode column, a County column, a PrimaryCity column and an AcceptableCities column. The PrimaryCity column contains only one city name, and therefore easy to extract the zipcode and county; but the AcceptableCities column can contain one or more comma separated cities/towns, etc., that are associated with a given zipcode and county.

If the city/town I'm looking for is not listed in the PrimaryCity column, I need to search the AcceptableCities column for a match to extract the zipcode and county. I want to know if the Find functionality will find a city/town among the possible multiple listings in the AcceptableCities column.

According to what I've read so far, I need to use the Find and not the Seek functions since the table containing the zipcodes/counties is a linked table to a backend.


RE: Clarification of the use of Find in VBA


The Range.Find Method has an argument using xlPart or xlWhole.

Here's the syntax...


expression . Find( What , After , LookIn , LookAt , SearchOrder , SearchDirection , MatchCase , MatchByte , SearchFormat ) 


glassesJust traded in my OLD subtlety...
for a NUance!tongue

RE: Clarification of the use of Find in VBA

Thanks Skip. I'll see if I can incorporate this into my code.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close