Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
CLamar
 
Posts: n/a
Default Cocatenation using VBA

I have two columns of data that are in an excel wksht, and I want to join the
two columns together and put it into a listbox. Can anyone suggest a method
of doing this.

Thanks
C Lamar
  #2   Report Post  
Posted to microsoft.public.excel.misc
jetted
 
Posts: n/a
Default Cocatenation using VBA


Hi Clamar

This will start you for the concatenate
Sub conc_colb_and_colc()
rowcount = Cells(Cells.Rows.Count, "a").End(xlUp).Row
For i = 2 To rowcount
val1 = Range("b" & i).Value 'assuming data is column b
val2 = Range("c" & i).Value 'assuming data is column c
Range("d" & i).Select 'store in column d
ActiveCell.Value = val1 & " " & val2
Next

End Sub


--
jetted
------------------------------------------------------------------------
jetted's Profile: http://www.excelforum.com/member.php...o&userid=17532
View this thread: http://www.excelforum.com/showthread...hreadid=556581

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



All times are GMT +1. The time now is 01:50 AM.

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"