This macro duplicates the row above a button, zeroes out numeric cells in the new row, and updates sum formulas.
- Open the Excel workbook.
- Press
Alt + F11
to open the VBA editor. - Import the
YourMacro.bas
file into a module. - Run the macro by clicking the button or pressing
F5
.
- Ensure macros are enabled in Excel.
- The button must be placed in the row where you want to insert a new row.