Ad row with button

  • Thread starter Thread starter Dennis
  • Start date Start date
D

Dennis

Can i make a button on a sheet to ad a row under the row where the button
in is? And by using the same button again another row under the earlier
inserted row? And if possible with auto numbering.

How does that works?
 
If you use a button from the Forms toolbar you can assign this macro to it

Sub test()
Dim Rw As Long
Rw = ActiveSheet.Shapes(Application.Caller).TopLeftCell.Row
End Sub

Rw is the row number of the topleftcell now
See if you can use this
 
I can`t get it working. I attached the code to the button but it won`t
work so i do something wrong. How do i assign the macro best to the button?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top