Te anexo la macro
Sub AbrirQuitar()
'Por.Dante Amor
Application.ScreenUpdating = True
Application.DisplayAlerts = True
Application.StatusBar = False
With Application.FileDialog(msoFileDialogFilePicker)
.Title = "Seleccione archivo de excel"
.Filters.Clear
.Filters.Add "Todos los archivos", "*.*"
.Filters.Add "*xls*", "*.xls*"
.FilterIndex = 2
.AllowMultiSelect = False
.InitialFileName = ThisWorkbook.Path & "\"
If .Show Then
Set l2 = Workbooks.Open(.SelectedItems.Item(1))
Set h2 = l2.Sheets(1)
Application.StatusBar = "Quitando espacios"
For i = 2 To h2.Range("A" & Rows.Count).End(xlUp).Row
If Not IsNumeric(h2.Cells(i, "A")) Then
fila = i - 1
Exit For
End If
Next
n = 1
cuantos = h2.Range("A2: AN" & fila).SpecialCells(xlCellTypeVisible).Count
For Each c In h2.Range("A2: AN" & fila).SpecialCells(xlCellTypeVisible)
Application.StatusBar = "Limpiando celda: " & n & " de: " & cuantos
n = n + 1
c.Value = Evaluate("=TRIM(" & c.Address & ")")
Next
l2.Save
l2.Close
End If
End With
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Application.StatusBar = False
MsgBox "Fin"
End Sub