Hi All,
I am hoping this is going to be very straight forward for VBA gurus, which I am unfortunately not![]()
I have 2 worksheets: Sheet1 called “Inspection Report” which contains cells I need to concatenate into Sheet2 called “WW”.
The number of rows on “Inspection Report” changes with every report so I need to continue the formula in “WW” until an empty cell is found in “Inspection Report” Range E16:E500
This is the very basic code I have – it covers the formula and insert row but I just can’t seem to get the formula to loop through until an empty cell is found...
Would appreciate any help![]()
Sub ConcatenateWW() ' 'Concatenate Barcode, Location and Code from "Inspection Report" 'and paste into "WW" Sheet - under Description of Works - starting in cell B8 'need code to keep adding rows in "WW" and concatenate formula until empty cell 'in "Inspection Report" ' Sheets("WW").Select Range("B8").Select ActiveCell.FormulaR1C1 = _ "=CONCATENATE('Inspection Report'!R[8]C[3],""; "",'Inspection Report'!R[8]C[6],""; "",'Inspection Report'!R[8]C[4])" Rows("9:9").Select Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove End Sub
![]()
Bookmarks