I would like to open an existing workbook, select a work sheet and insert multiple rows at the top of the spreadsheet. Have the following code, but unsure of proper command & syntax for Insert row, and how to make it insert at row A1.
Code:
With DataSheet .Sheets(2).Select .Rows.Insert .Cells(1, 1).Value = txtLine1 .Cells(2, 1).Value = txtLine2 .Cells(3, 1).Value = txtLine3 .Cells(4, 1).Value = txtLine4 End With
Comment