Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,124
- Office Version
- 365
- Platform
- Windows
Hi All,
I'm working with a sub trying to capitalize the first letter of each word in a column:
However, when I apply this sub to its table column it takes to long to execute.
Do you know how I can add to this code, when it finds the lower-case word(s) in cell to then exit the sub in lieu of checking every cell in that column?
Please let me know.
Thank you very much!
pinaceous
I'm working with a sub trying to capitalize the first letter of each word in a column:
VBA Code:
Sub CapitalizeFirstWord1()
Dim rng As Range
For Each rng In Range("BA11:BA180")
rng.Value = StrConv(rng.Value, vbProperCase)
Next rng
Exit Sub
End Sub
However, when I apply this sub to its table column it takes to long to execute.
Do you know how I can add to this code, when it finds the lower-case word(s) in cell to then exit the sub in lieu of checking every cell in that column?
Please let me know.
Thank you very much!
pinaceous