Not sure what the trim blanks function is that you are using, but ther
is function called Trim() which should do the trick. Are you workin
with the query manually or importing it through code?
If you are doing it manually, simple macro (which might take a bit t
run) would be:
Sub TrimEntireWorksheet()
Dim r As Range
For Each r In ActiveSheet.UsedRange
r.Value = Trim(r.Value)
Next
End Sub
Just run this after you do the import.
--
Message posted from
http://www.ExcelForum.com