Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Concantenate and align info??

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

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Concantenate and align info??

One way:

Dim h As String
h = Left(h1 & Space(20), 20) & Left(h2 & Space(20), 20) & h3

In article ,
depuyus wrote:

I am trying to concantenate information from three columns into one so
that the info contained in the three columns can be viewed on a user
form. The form works great but because the cells hold information of
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 of
trying to make it space so that the information would align?

I thank you in advance for any suggestions.


---
Message posted from http://www.ExcelForum.com/

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Concantenate and align info??

depuyus,
What about using a multi column list box instead ?

NickHK

"depuyus " wrote in message
...
I am trying to concantenate information from three columns into one so
that the info contained in the three columns can be viewed on a user
form. The form works great but because the cells hold information of
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 of
trying to make it space so that the information would align?

I thank you in advance for any suggestions.


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Concantenate and align info??

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

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Align dollar symbol, align currency symbol... Mark Excel Discussion (Misc queries) 1 April 9th 08 03:39 AM
Concantenate Help Terri Excel Worksheet Functions 4 March 31st 06 06:53 PM
Left align '$' and right align numbers? skeetley Excel Discussion (Misc queries) 1 October 21st 05 08:12 AM
What is short-Cut forleft align and Right align? Sandy Excel Discussion (Misc queries) 1 February 24th 05 12:25 PM
Concantenate using VBA? cornishbloke[_17_] Excel Programming 4 January 7th 04 04:12 PM


All times are GMT +1. The time now is 09:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"