Capitalization of Text in Street Address

MarkA70

Registered User.
Local time
Today, 07:38
Joined
Jan 30, 2016
Messages
43
For the text capitalization issues the following works great, of course:

Code:
Me.FirstName = StrConv(FirstName, vbProperCase)

However, it does not work on an entry like 111 main st. I would like to be able to capitalize the Main an St. text. How's the best way, Thanks!
 
Which part doesn't work as expected?

Code:
Sub testalq()
Dim s As String: s = "111 main st., hometown, mystate"
Debug.Print StrConv(s, vbProperCase)

End Sub

Result:

111 Main St., Hometown, Mystate
 
jdraw: That does not seem to work, it skips all text after the numbers. Thanks!
 
Interesting. I tested it and showed the result???
 
I am an idiot, it do work, sorry, long day.
 

Users who are viewing this thread

Back
Top Bottom