I'm quite new to VBA and have been playing with this for days.
It's a little hard to explain: There are 3 sets of option buttons on a userform, which column the data is entered into is dependant on the permutation of these results. However, I can't work out how to look for the next empty row within a specific column - I will have to do this for 15 different columns as this is the number of potential outcomes of the 3 option buttons.
I've tried playing around with the range in the following code, but it keeps overriding my headings - data entry doesn't start until row 5.
Any help would be greatly appreciated!
Code I used for column A
Userform
Sheet data is written to
It's a little hard to explain: There are 3 sets of option buttons on a userform, which column the data is entered into is dependant on the permutation of these results. However, I can't work out how to look for the next empty row within a specific column - I will have to do this for 15 different columns as this is the number of potential outcomes of the 3 option buttons.
I've tried playing around with the range in the following code, but it keeps overriding my headings - data entry doesn't start until row 5.
Any help would be greatly appreciated!
Code I used for column A
Code:
If oven1.Value = True And row1.Value = True And operator.Value = True Then
a = WorksheetFunction.CountA(Range("A:A"))
Cells(a, 1) = datetext.Value
End If
Userform

Sheet data is written to
