I currently have a userform which outputs data into a sheet. I have recently added a table in the output region where my formulas that analyze the data are located, and made it 1000 rows high so that I have space. Now, annoyingly, the data is outputting at the very bottom of the table, not in the first row (I think Excel is interpreting the presence of the table as being a full row and then going below it). I tried just deleting the intervening empty rows, and that works as long as the first row is never deleted. Unfortunately, this will be a form which is cleared and re-filled each day, so I'd rather not require the user to keep the top row at all times.
My current code is the below - how do I change it to ask it to output into the first row of Table2 instead of the first available row of Sheet1?
Private Sub Adddatabutton_Click()
Dim iRow As Long
Dim ws As Worksheet
Set ws = Worksheets("Sheet1")
iRow = ws.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
' A bunch of output code
' A bunch of code that clears the form
End Sub