I have a question about vba programming... (please dont close this question...!!) I've tried everything, but can't get further ..
Code:
Private Sub US1()
Dim Team As Long
Team=Sheets("sheet1").UsedRange.SpecialCells(xlCellTypeLastCell).Row
With Worksheets("sheet1")
.Cells(Team, 2) = Number.Value
End With
Unload Me
End Sub
My result: he writes the index somewhere in the table (column B) but then also overwrites it. I can't find the fault.
i want that the index to be written in the next free cell.
Devo