D
DFS
Excel 2003
I have a form with a button that inserts one row. As soon as the Insert
executes, the form closes and the code quits.
i = ActiveCell.Row
Rows(i + 1).Select
Selection.Insert
I also tried: Rows(i + 1).Insert
on the last line, and no dice.
Resolution: close the sheet and reopen and it works.
Lesson learned: Excel sometimes works in mysterious ways.
I have a form with a button that inserts one row. As soon as the Insert
executes, the form closes and the code quits.
i = ActiveCell.Row
Rows(i + 1).Select
Selection.Insert
I also tried: Rows(i + 1).Insert
on the last line, and no dice.
Resolution: close the sheet and reopen and it works.
Lesson learned: Excel sometimes works in mysterious ways.