Buttons are drawn on a different layer and not "in" the actual
spreadsheet layer. I guess you could use variables to keep track
of the row each button is on. Then when you click one you will
know what button is pressed and you can move each button
below to the correct positioning.

The logic of the spreadsheet is not very programmer friendly.
Couldn't you get rid of the buttons on the spreadsheet and
create a custom toolbar or menuitems to do the same thing. Then
you wouldn't have to worry about control positioning.

HTH