LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Concatenate 3 columns.


This is the routine I used to concatenate 2 columns. How would I
concatenate 3 adjacent columns?

Thanks,

Jim


Sub ConcatColumns()

Do While ActiveCell < "" 'Loops until the active cell is
blank.

'The "&" must have a space on both sides or it will be
'treated as a variable type of long integer.

ActiveCell.Offset(0, 1).FormulaR1C1 = _
ActiveCell.Offset(0, -1) & " - " & ActiveCell.Offset(0, 0)

ActiveCell.Offset(1, 0).Select
Loop

End Sub


--
Jim15
------------------------------------------------------------------------
Jim15's Profile: http://www.excelforum.com/member.php...o&userid=26300
View this thread: http://www.excelforum.com/showthread...hreadid=515856

 
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
CONCATENATE TWO COLUMNS The Cable Guy Excel Worksheet Functions 3 December 16th 09 04:37 AM
Concatenate Data inn different columns Jac Excel Discussion (Misc queries) 4 November 7th 06 11:00 PM
Concatenate Four Columns With Seperators Stephen A. Gye Excel Discussion (Misc queries) 1 May 28th 06 10:21 AM
Concatenate two columns? uma Excel Worksheet Functions 1 April 19th 06 09:46 AM
Concatenate 3 columns. Jim15[_12_] Excel Programming 0 February 23rd 06 05:08 PM


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

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

About Us

"It's about Microsoft Excel"