Concantenate and align info??

  • Thread starter Thread starter depuyus
  • Start date Start date
D

depuyus

I am trying to concantenate information from three columns into one s
that the info contained in the three columns can be viewed on a use
form. The form works great but because the cells hold information o
different lengths it displays the information all unaligned as below:

h1&" "h2&" "h3

$14 blah blah etcetc
$142 blah blah etcetc
$1433 blahblah etcetc

Is it possible to establish the string lenth for each h instead o
trying to make it space so that the information would align?

I thank you in advance for any suggestions
 
One way:

Dim h As String
h = Left(h1 & Space(20), 20) & Left(h2 & Space(20), 20) & h3
 
Thank you so much! I really appreciate the help. I love the code.
didnt realize that I could use a multi column list box. I define
multiple columns in the range and it only showed the first column so
assumed you couldnt. I will check into that. Thank you both
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top