Hello,
I have a workbook that I already have a large amount of VBA code in, running a multitude of functions. One of these is to copy the data in row that contains the active cell and insert a row with this data into the row below. I need to add to this code to insert a row (must be the same row as being inserted into the active sheet) into another sheet in the same workbook.
For example if I have cell D175 as active cell, I click the button with the assigned VBA code, it copy's row 175 and inserts a new row into row 176 that contains the same data as row 175.
I require code adding that will also add the same row number into another sheet (call this "Build Output")
This is my current code:
I have a workbook that I already have a large amount of VBA code in, running a multitude of functions. One of these is to copy the data in row that contains the active cell and insert a row with this data into the row below. I need to add to this code to insert a row (must be the same row as being inserted into the active sheet) into another sheet in the same workbook.
For example if I have cell D175 as active cell, I click the button with the assigned VBA code, it copy's row 175 and inserts a new row into row 176 that contains the same data as row 175.
I require code adding that will also add the same row number into another sheet (call this "Build Output")
This is my current code:
VBA Code:
Sub InsertCopyOfPart()
With ActiveCell
.Offset(1).EntireRow.Insert
Cells(.Row, 1).Resize(2, 13).FillDown
End With
End Sub