Adding rows automatically

Thanks to this free vba code you will insert an ActiveX Control which will add rows to your table automatically. Your worksheet gains some code and you will save bunch of time.

1. Consider the data. Go to ribbon. Click Developer > Insert and from ActiveX Controls chose a Command Button.

insert activeX forms

2. Draw a button like shown below.

command button

3. Right click the command button and choose Properties.

properties

4. In Caption field change the text as Add Row.

caption add row

5. When you double click the button a form will appear like this below.

sheet1 code

6. Put the code like shown below. While keeping in mind the sheet name, range according to your data.

vba code

7. Click the Design mode to off design mode.

design mode off

8. Every time when you click the Add Row button, a new row will add in your data like shown below.

add row button works

Note: Of course you can improve that VBA code. But to do this you need to know a little bit of VBA in Excel. Just click VBA in the menu on the top of the page and learn VBA in Excel.