I'm using the following to set an input range to select my first cell to input from a userform (This selects the 1st blank cell in Column I on worksheet called Targets)
I then use the following (to add the correct value from the userform)
Followed by (To add the other values from the userform under each other in a column - this is for all the userform values).
When I re-use the userform the next set of data gets added underneath the 1st set in the same column (Column I). What I want it to do is find the first blank cell in the next column to the right and add the data in that column as previous. Each userform submission enters the values in the next column from the last. I know the issue is in the Set Inputrange... line of code but I can't work out the correct syntax.
Its probably obvious but I'm going round in circles.
Code:
Set inputrange = Worksheets("Targets").Cells(Rows.Count, 9).End(xlUp).Offset(1)
I then use the following (to add the correct value from the userform)
Code:
inputrange.Value = Textbox1.Value
Followed by (To add the other values from the userform under each other in a column - this is for all the userform values).
Code:
inputrange.Offset(1, 0).Value = Textbox2.Value
When I re-use the userform the next set of data gets added underneath the 1st set in the same column (Column I). What I want it to do is find the first blank cell in the next column to the right and add the data in that column as previous. Each userform submission enters the values in the next column from the last. I know the issue is in the Set Inputrange... line of code but I can't work out the correct syntax.
Its probably obvious but I'm going round in circles.