-----Original Message-----
Kathy
There is no button for the TRIM function.
Sounds like you have much TRIMming to do. Perhaps a macro would serve you
better. That way you don't have to TRIM each cell individually using a helper
cell and the TRIM function.
David McRitchie's TRIMALL macro can be assigned to a button on your Toolbar.
One click does all cells at a whack.
Sub TrimALL()
'David McRitchie 2000-07-03 mod 2000-08-16 join.htm
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Dim cell As Range
'Also Treat CHR 0160, as a space (CHR 032)
Selection.Replace What:=Chr(160), Replacement:=Chr(32), _
LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
'Trim in Excel removes extra internal spaces, VBA does not
On Error Resume Next 'in case no text cells in selection
For Each cell In Intersect(Selection, _
Selection.SpecialCells(xlConstants, xlTextValues))
cell.Value = Application.Trim(cell.Value)
Next cell
On Error GoTo 0
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
See David's site for "getting started with Macros" to get instructions on
how/where to store and use macros. As your needs and expertise progress in
Excel you will want to use Macros to make your repetitive tasks easier. Jump
in and get your feet wet now.
http://www.mvps.org/dmcritchie/excel/getstarted.htm
Gord Dibben Excel MVP - XL97 SR2 & XL2002