Thread: Trim Blanks
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
kkknie[_31_] kkknie[_31_] is offline
external usenet poster
 
Posts: 1
Default Trim Blanks

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