Hunt4m3x
Do you have zip-city lookup table somewhere? If, so how is it kept current. There are about 11,000 5-digit zip codes in the US, and they change constantly. Or are you only dealing with a few cities/areas?
A VLOOKUP formula will work, but it needs a table to work against.
Regards,
Justin
Main Topics
Browse All Topics





by: sebastienmPosted on 2004-06-10 at 15:50:36ID: 11284357
Hi Hunt4m3x,
i guess you want it all values in column I, not just I30? and in Excel, right?
You can still select all the I column, then menu Edit > Replace, choose:
- what: 75150
- with: Mesquite, TX 75150
- make sure the Whole Cell Only is checked.
- then replace all
You can do the above process while having the macro recorder on and you should get something very close to what you want.
With code, something like:
Sub Replace75150()
Dim Rg as range
Set Rg = ActiveSheet.Range("I:I")
Rg.Replace What:=75150, Replacement:="Mesquite, TX 75150", LookAt:=xlWhole
End Sub
Regards,
Seb