vba macro to punctuate addresses

gibsongk55

Board Regular
Joined
Feb 15, 2010
Messages
61
Hi,

Does anyone have a vba code to punctuate addresses?

Here is a small list i started, of course it would have to search for a space after each one so it does not punctuate if the characters are in the middle of a word.

pl -> Pl.
trl -> Trl.
ave -> Ave.
ct -> Ct.
st -> St.
ne -> N.E.
nw -> N.W.
se -> S.E.
sw -> S.W.
rd -> Rd.
apt -> Apt.
cir -> Cir.



Thanks,

Gibs
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
If you would like to investigate dictionaries: Here's a couple links to assists:
http://www.mrexcel.com/forum/showpost.php?p=991091&postcount=2
RangeToDictionary here: http://www.cpearson.com/excel/CollectionsAndDictionaries.htm
Once a dictionary is defined; pretty easy to spell check them.

Here's a list of US street types dumped from one of my dbs:
ALY,AVE,BLVD,BND,BYP,CIR,CRES,CT,CV,DR,EXT,GLN,HOLW,HWY,KNL,LN,LNDG,LOOP,MEWS,PARK,PASS,PATH,PEWY,PKWY,PL,PLZ,PSGE,PT,RD,ROW,RUN,SQ,ST,STA,TER,TRCE,TRL,TURN,WALK,WAY,WYND,XING
[The USPS site seems down at this time (budget cuts I presume)]
 
Upvote 0

Forum statistics

Threads
1,224,538
Messages
6,179,412
Members
452,912
Latest member
alicemil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top