Add data to new row each time data is entere [Solved/Closed]

Report
-
 nag -
Hello,
I'hv created a VBA form to enter dad like Names,numbers,date,time etc.Each time the form is run and data is entered it should be added to new row.The data entered is never dupicate so there is no need to verify that.But adding data to the next new row is my problem.I want the first 4rows of sheet to be headre row and so my dad should get added from 5th row.How do I do this?

1 reply

Posts
4475
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
January 6, 2016
757
Having not seen how you are doing it. All I can suggest is that find the last used row and add one to it. If the result if 4 or less then make it 5

If col A will always have data then you can use this to find last row

lastrow = cells(65536,1).end)xlup).row

lastrow = lastrow + 1

if lastrow < 5 then lastrow = 5
2
Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 4198 users have said thank you to us this month

thank you so much for ur reply...its solved my problem.