Excel has formulas for converting a bunch of text to UPPER, LOWER and PROPER Cases. But not a formula to convert a Sentence case.
Upper case: MAKE ME A SANWICH =UPPER(C2)
Lower case: make me a sandwich =LOWER(C2)
Proper case: Make Me A Sandwich =PROPER(C2)
[pre][code]Sentence case: Make me a sandwich =UPPER(LEFT(C2,1))&MID(LOWER(C2),2,999
Assuming your text is in C2, the formula is,
=UPPER(LEFT(C2,1))&MID(LOWER(C2),2,999)
Option Explicit
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
' constants
' declarations
Dim c As Range
' start
' process
For Each c In Target
c.Formula = UCase(c.Formula)
Next c
' end
End Sub
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Application.EnableEvents = False
For Each Tc In Target
If Not ((Tc.Locked And Sh.ProtectContents) Or _
Tc.HasFormula) Then Tc.Value = UCase(Tc)
Next
Application.EnableEvents = True
End Sub