A caveat with Bob's macro.....
If you have any formulas in the selected range, they will be wiped out and
replaced with values.
To prevent that, change to.....
Sub ChangeCase()
Dim cell As Range
For Each cell In Selection
cell.Formula = LCase(cell.Formula)
Next cell
End Sub
Gord Dibben Excel MVP
On Mon, 10 Jan 2005 10:45:18 -0000, "Bob Phillips"
wrote:
Louise,
This macro does it
Sub ChangeCase()
Dim cell As Range
For Each cell In Selection
cell.Value = LCase(cell.Value)
Next cell
End Sub
To change to upper-case just use Ucase/
Proper case (This is. This isn't, for instance) is trickier, and you need a
worksheetfunction as well
Sub ChangeCase()
Dim cell As Range
For Each cell In Selection
cell.Value = WorksheetFunction.Proper(cell.Value)
Next cell
End Sub
|