shajan Member Feb 26, 2012 #1 please help with this loop ! Cell B2=23 copy range B6:U6 insert indirect(B2) rows starting at row 7 paste copied range (B6:U6) to all indirect(B2) rows Thanks.
please help with this loop ! Cell B2=23 copy range B6:U6 insert indirect(B2) rows starting at row 7 paste copied range (B6:U6) to all indirect(B2) rows Thanks.
shajan Member Feb 26, 2012 #4 Hi ! Got this code from somewhere else, but not performing as intended, but very close. Sub insert_rows_equal_to_lineitems() ' This loop repeats a fixed number of times getting its reference from elsewhere Dim i As Integer Dim intRowCount As Integer intRowCount = Range("j4").CurrentRegion.Rows.Count - 1 For i = 1 To intRowCount 'ActiveCell.Offset(1, 0).Select Call srvlineinsert Next i End Sub Thanks.
Hi ! Got this code from somewhere else, but not performing as intended, but very close. Sub insert_rows_equal_to_lineitems() ' This loop repeats a fixed number of times getting its reference from elsewhere Dim i As Integer Dim intRowCount As Integer intRowCount = Range("j4").CurrentRegion.Rows.Count - 1 For i = 1 To intRowCount 'ActiveCell.Offset(1, 0).Select Call srvlineinsert Next i End Sub Thanks.