I saw that there was a code submitted by Anne Troy that Changed the case of selected cells.
[vba]
Option Explicit
Sub ConvertCase()
Dim Rng As Range
For Each Rng In Selection.Cells
If Rng.HasFormula = False Then
'Use this line for UpperCase text; change UCase to LCase for LowerCase text.
Rng.Value = UCase(Rng.Value)
End If
Next Rng
End Sub [/vba]
I saw that you could change the text from upper to lower case by just changing " Rng.Value = UCase(Rng.Value) "
I would like to summon the trim function instead of lower case or upper case for the selected text.
Or even better combine the two Upper case and Trim.
Thanks in adavance.