Private Sub FormatAddresses()
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Sheet1") ' Change to your sheet name
Dim lastRow As Long
lastRow = ws.Cells(ws.Rows.Count, "D").End(xlUp).Row ' Find last row in column D
Dim replacements As Variant
replacements = Array( _
Array("Alley", "Ally"), _
Array("Avenue", "Ave"), _
Array("Boulevard", "Blvd"), _
Array("Circle", "Cir"), _
Array("Court", "Ct"), _
Array("Crescent", "Cres"), _
Array("Drive", "Dr"), _
Array("East", "E"), _
Array("Esplanade", "Esp"), _
Array("Freeway", "Fwy"), _
Array("Highway", "Hwy"), _
Array("Lane", "Ln"), _
Array("North", "N"), _
Array("Parkway", "Pkwy"), _
Array("Place", "Pl") _
)
Dim i As Long, cell As Range
For Each cell In ws.Range("D2:D" & lastRow)
If Not IsEmpty(cell.Value) Then
For i = LBound(replacements) To UBound(replacements)
cell.Value = Replace(cell.Value, replacements(i)(0), replacements(i)(1))
Next i
End If
Next cell
MsgBox "Address formatting complete!", vbInformation
End Sub