I am creating a button that can automatically enter a number in order. So on cell "A1" the cell is the title and it is Title Number. "A2" is blank. I would like it, that if I click on my button, A2 would be 1 and when I click on it again, A3 would be 2 and so on. I am trying to apply this to my userform and I am stuck on this part. What code can I use for this?
Thank you
Private Sub Save_Click()
Dim ws as Worksheet: Set ws = Thisworkbook.ActiveSheet
Dim LastRow as Long
Dim title as Long
title = ws.Range("A:A").Find("Title Number").Row
LastRow = ws.Range("A:A").Find(What:="", After:=Cells(title,1)).Row
I am stuck at this part, I do not know how to start it off after this. What I am trying to do is that whatever number that is, I would want to reference that number so I can input in more data to that specific number row.
Hope I am making sense here.