'How to add a row and button into a spreadsheet and then delete that inserted row using the button

I have created a spreadsheet that allows you to pick an option from a drop down list and then shows some corresponding code. I have created a macro that inserts a new row and shifts the table down, it also adds a button on the end of the inserted row that is meant to delete the row it is on. However, it always deletes the same row. Is there a way to add a macro that deletes the row it is in?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source