View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
noyb[_3_] noyb[_3_] is offline
external usenet poster
 
Posts: 5
Default Add spaces to cell

I am concatenating last and first names into a single cell but need to
have the phantom columns line up. I know the longest last name is 17
characters long so I need a macro which will add the appropriate number
of spaces to the right of each last name. Something like
-edit cell
-calculate length
-add appropriate number of spaces to right of last character
-end edit
-next cell
Any help would be great. Thanks