Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I want to use the following code to remove space at the end of the value in
each cell in a coulmn but the space is still there. Any ideas what is going on? Thanks. Private Sub cmdRemoveSpace_Click() Dim ClastRow As Integer, c As Range, cl As Range ClastRow = ActiveSheet.UsedRange.Rows.Count For Each c In Range("A2:A" & ClastRow).Cells 'c = Mid(c, 1, Len(c) - 1) c = Trim(c) Next c End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
TRIM | New Users to Excel | |||
Using =TRIM() | Excel Worksheet Functions | |||
Another, sort of trim question | Excel Discussion (Misc queries) | |||
Trim | Excel Discussion (Misc queries) | |||
TRIM? | Excel Worksheet Functions |