Try this
Sub ConcateAll() Dim Resultcell As Range Dim rng As Range Dim cell As Range Dim resultString As String Set rng = Application.InputBox("Please select A Range For Input ", , , , , , , 8) Set Resultcell = Application.InputBox("Please select A Range For Out ", , , , , , , 8) resultString = "" For Each cell In rng resultString = resultString & cell.Value Next Resultcell = resultString End Sub From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Raghavendra Sent: Thursday, August 04, 2011 11:26 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ VBA Code to consolidate all data in a cell Hi, Can anyone advise me on VBA code to perform the task as mentioned in the attachment? Regards, Raghavendra -- ---------------------------------------------------------------------------- ------ Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel