Thread: Macro command
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Gary Keramidas[_2_] Gary Keramidas[_2_] is offline
external usenet poster
 
Posts: 364
Default Macro command

why not look at all the replies to your original post yesterday? no need to
post again

you could also do this:
select the entire column
click data and then text to columns
choose delimited
click next
put a check next to space under delimiters
click next and then finish

it will put the dates in the next column to the right. if you have data
there now, just insert a column to the right of the original "date" field



--


Gary


"Dean" wrote in message
...
I have inherited a file with a column of dates. However, each data
apparently has a blank space in front of it, so it is not recognized as a
real date. Hence I cannot perform algebraic manipulations on them as is.

I need to be able to go to each cell (thousands of them) in these columns
and take out this space on the left. Can someone tell me what the macro
should be to, say, start in cell C8 and edit it and take out the leftmost
character (which is a blank), and then move on to the next row down in
that column. Since some of the rows might be empty, it would be better if
we could just skip those, but it is not necessary.

In case it helps, I believe that all dates are in xx/yy/zz format (with
one spacebar in front).

Thanks!
Dean