Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Is it possible to trim an entire worksheet?
|
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
You could use a macro
Sub trimall() Application.ScreenUpdating = False Dim myRange As Range Set myRange = Range("A1:D1000") '< Change to suit For Each c In myRange c.Select c.Value = Trim(c.Value) Next c Application.ScreenUpdating = True End Sub Mike "fitou_learn" wrote: Is it possible to trim an entire worksheet? |
#3
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Many thanks Mike. It worked a treat!
"Mike H" wrote: You could use a macro Sub trimall() Application.ScreenUpdating = False Dim myRange As Range Set myRange = Range("A1:D1000") '< Change to suit For Each c In myRange c.Select c.Value = Trim(c.Value) Next c Application.ScreenUpdating = True End Sub Mike "fitou_learn" wrote: Is it possible to trim an entire worksheet? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
trim function | Excel Worksheet Functions | |||
Need help with TRIM function | Excel Worksheet Functions | |||
Trim Function | Excel Worksheet Functions | |||
Trim function | Excel Worksheet Functions | |||
How to use TRIM function | Excel Worksheet Functions |