Not sure, but I've got a column of words and all letters are capitalized. So I just want to highlight the whole column and change the case so the first letters only are capitalized. If this was MSWORD it would be easy.
While Tony has solved your problem here is a macro I use frequently in Excel which does what you initially requested and rotates between the various cases, exactly as what happens when you use Shift+F3 in Word:
Public ShiftCase As Integer
Sub CaseChanger()
'
'Step Through Case Changes
'Created by Peter Moran 6/7/99 (ex PC Mag PC Tech)
'Modified 15/5/03 to exclude cells with formulas
'Note: Including Static below will mean macro holds value
' Static Sub CaseChanger()
'
ShiftCase = ShiftCase + 1
If ShiftCase > 3 Then ShiftCase = 1
For Each Item In Selection
Select Case ShiftCase
Case 1
If Item.HasFormula = False Then
Item.Value = LCase(Item.Value)
End If
Case 2
If Item.HasFormula = False Then
Item.Value = UCase(Item.Value)
End If
Case 3
If Item.HasFormula = False Then
Item.Formula = Application.Proper(Item)
End If
End Select
Next Item
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.