Add data to new row each time data is entere

Solved/Closed
nag - Feb 19, 2010 at 08:08 AM
 nag - Feb 19, 2010 at 08:49 PM
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

rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
769
Feb 19, 2010 at 08:14 AM
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 so much for ur reply...its solved my problem.
0