Skip to content

Instantly share code, notes, and snippets.

@walkergv
Last active June 5, 2019 13:15
Show Gist options
  • Save walkergv/5349206 to your computer and use it in GitHub Desktop.
Save walkergv/5349206 to your computer and use it in GitHub Desktop.
Excel Macros For Making Text In Cells Upper, Lower and Proper Case
'Code for Upper Case
Sub UpperCase()
Dim objCell As Object
For Each objCell In Selection
objCell.Value = UCase(objCell.Formula)
Next
End Sub
'Code for Lower Case
Sub LowerCase()
Dim objCell As Object
For Each objCell In Selection
objCell.Value = LCase(objCell.Formula)
Next
End Sub
'Code for Proper Case
Sub ProperCase()
Dim objCell As Object
For Each objCell In Selection
objCell.Value = Application.Proper(objCell.Formula)
Next
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment