Thread: Adding a space?
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default Adding a space?

ary(0) = Space(Len(test1) - Len(ary(0))) & ary(0)


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Sjakkie" wrote in message
...
I have an array which holds names and details i have been able to set
"test1"
to the longest name in the array and add 5 more spaces. I then want it to
lookat the first value in the array and count howmany characters it is if
it
is less than that that was stored in "test1" i want it to add spaces on
untill it reaches the same ammount as "test1" is this possible?