I have columns in my table (F -> I) with potentially unlimited rows, which are drop downs with a simple Yes/No list.
It starts as an empty row and the user inputs data in other rows and then selects either Yes/No based on the questions.
What I'm looking for is some VBA to say If the user has selected 'No' in Column F, then in Column K, prepopulate with "Column F: ". The idea is that anything that is selected as "No", is populated in K so the user can add their notes and reference Column F. For example: "Column F: This did not meet requirements because xxxxx"
I have tried a few examples whilst searching the net but nothing seems to work:
R = 4
'loop to the last row
Do Until Range("F" & R) = ""
'check each cell if if contains 'apple' then..
'..place 'Contains Apple' on column B
If InStr(1, Range("F" & R), "No") Then
Range("K" & R) = "Test Plan"
End If
R = R + 1
Loop
I also tried putting that in a worksheet change sub but it didn't work as expected.
Any help appreciated. Thanks