• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Insert new row after last data inserted

Hi,

Can anyone help into this...
When I click to Ins button than a row must insert after the last task data fed by me.
Please refer the attached file...

Thank and Regards!
Mehmud
 

Attachments

  • DATA.xlsm
    12.9 KB · Views: 6
Hi:

May be this code:

Code:
Sub test()
Dim b As Object
    Set b = ActiveSheet.Buttons(Application.Caller)
    With b.TopLeftCell
        c& = .Row
    End With
i& = Me.Cells(Rows.Count, 4).End(xlUp).Row - 1
If Cells(i, 1) <> vbNullString Then: Rows(c + i).EntireRow.Insert
End Sub

Thanks
 

Attachments

  • DATA.xlsb
    20.1 KB · Views: 3
Back
Top