Thanks Thanks:  0
Likes Likes:  0
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Insert row on button position

  1. #11
    New Member
    Join Date
    Feb 2002
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I've tried it 100 times and I that's not working but I get the idea. That's exactly what I want but I just need to know how to complete it. I don't know what the missing link in the code is. Can you help?

  2. #12
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Bogota, Colombia
    Posts
    11,959
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I think the problem you're having is the "type" of button you are using. Use a button from the Control Toolbar. Then, doubleclick on it, and paste this macro there:

    Private Sub CommandButton1_Click()
    ActiveCell.Select
    CommandButton1.BottomRightCell.Offset(1).EntireRow.Insert
    End Sub
    Regards,

    Juan Pablo González
    http://www.juanpg.com

  3. #13
    New Member
    Join Date
    Nov 2009
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Insert row on button position


Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •