Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() morning all. I'm trying to clean out some extra spaces in my data. Using AutoCAD 2009, I extracted some data into an excel spreadsheet. (Autodesk has created a dataextraction tool for the latest version) The data set that I'm trying to clean up has a bunch of chr(10) elements in it, and I'd like to remove them. Well, let me restate that-- there are multiple blank space characters in the strings that I want to remove. I've tried trim, but it appears to be treating the chr(10) elements as valid string components. I've also tried right() and it too is picking up the chr(10) elements. How can I clean the chr(10) elements out? Here's my present code (It's something I got from Gary's Student either late last year, or earlier this year, and made one modification to-- adding trim)-- Dim v As String, val As Double While ActiveCell.value < "" v = ActiveCell.value v = Trim(v) val = Right(v, 4) ActiveCell.Offset(0, 1).value = val ActiveCell.Offset(1, 0).Select Wend Thank you for your helps. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
TRIM Q | Excel Worksheet Functions | |||
VLOOKUP Trim vs. No Trim | Excel Programming | |||
VBA Trim and Application.worksheetfunction.Trim | Excel Programming | |||
Trim or Len help (I think) | Excel Programming | |||
Trim like worksheet Trim | Excel Programming |