Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-15-2011, 09:21 AM
Catalin.B Catalin.B is offline Concatenated data in subsequent rows Windows Vista Concatenated data in subsequent rows Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, România
Posts: 386
Catalin.B is on a distinguished road
Default

try this macro: (same in file attached):
Sub concatenate()
Dim nextRow As Long
With Sheets("Sheet1")
nextRow = Range("G" & Rows.Count).End(xlUp).Row + 1
Cells(nextRow, "G").Value = Cells(2, "A").Value & Cells(5, "D").Value
Cells(nextRow + 1, "G").Value = Cells(3, "A").Value & Cells(5, "D").Value
Cells(nextRow + 2, "G").Value = Cells(4, "A").Value & Cells(5, "D").Value
Cells(nextRow + 3, "G").Value = Cells(5, "A").Value & Cells(5, "D").Value
MsgBox "Mission accomplished! "
End With
End Sub
Attached Files
File Type: xlsm Copie a PROJECT2.xlsm (18.4 KB, 12 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenated data in subsequent rows Odd behaviour of table - keep rows together Stephan Lindner Word Tables 1 09-10-2011 05:31 AM
Product and Sum on 2 rows apolloman Excel 2 04-27-2011 07:14 AM
Concatenated data in subsequent rows Rows to Columns kyakobi Excel 5 12-07-2010 03:12 PM
Concatenated data in subsequent rows Average of many rows speedycorn1 Excel 1 10-30-2010 07:54 PM
Concatenated data in subsequent rows How do I turn the top 2 rows into a header GR8Fandini Excel 1 02-06-2010 12:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft