Creat button to add row

vishwajeet_chakravorty

Board Regular
Joined
Mar 8, 2010
Messages
120
I have made a income tax calculator. In some place I have to add row manualy but I want make a button (+) in that perticular place to add row by clicking that button (+) so that more and more row can be added. How can I make this possible?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Add this code to your button
Code:
Sub OneMoreRowetta ()
ActiveCell.Insert.Row
End Sub
To use, click on the cell you want to insert a row above and then click on the button
 
Upvote 0
How about a DoubleClick???
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Target.EntireRow.Insert
End Sub

lenze
 
Upvote 0
I have made the macro but it is not solving the problem. I want to make a perticulat button (+) in a fixed place and by clicking that button I may be able to go on adding rows. Write in detail that how the button having + character also.
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,319
Members
452,905
Latest member
deadwings

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top