CODE
Sub CapFirstWord()
'by Ed Weber 09/19/07
' Select continuous rows in the same column which contain the target text
Dim ActSh As Worksheet
Set ActSh = ActiveSheet
Dim temp As String
Dim strText As String
Dim oCell
temp = ""
For Each oCell In Selection.Cells
If IsEmpty(oCell) = False Then
strText = Trim(oCell.Value)
temp = UCase(Mid(strText, 1, 1))
strText = temp & Mid(strText, 2, Len(strText) - 1)
oCell.Value = ""
oCell.Value = strText
temp = ""
End If
Next oCell
End Sub
'by Ed Weber 09/19/07
' Select continuous rows in the same column which contain the target text
Dim ActSh As Worksheet
Set ActSh = ActiveSheet
Dim temp As String
Dim strText As String
Dim oCell
temp = ""
For Each oCell In Selection.Cells
If IsEmpty(oCell) = False Then
strText = Trim(oCell.Value)
temp = UCase(Mid(strText, 1, 1))
strText = temp & Mid(strText, 2, Len(strText) - 1)
oCell.Value = ""
oCell.Value = strText
temp = ""
End If
Next oCell
End Sub