Dont know the reason why this is so, but...
if text is in A1, put =upper(a1) or =lower(a1) into B1 to convert. Fill down the column by double clicking on the fill handle.
This will allow you to toggle between Upper and lower:-
Sub ToggleCase()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
For Each cell In ActiveSheet.UsedRange
If cell.HasFormula = False And cell.Value = UCase(cell.Value) Then
cell.Value = LCase(cell.Value)
Else
cell.Value = UCase(cell.Value)
End If
Next cell
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub
Regards
Ken.................
---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission
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.