Based on the data and output at [FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]https://ibb.co/qNmx8Lz
What is the error that caused error at 3rd column of the output ?
Below is the code that I have been using
Appreciate if fellow members can give me a helping hand.
[/FONT]
What is the error that caused error at 3rd column of the output ?
Below is the code that I have been using
Code:
Sub MissingHobbies()
Dim c As Integer, h As Integer, ans As Integer
ans = 9
For c = 2 To 11 ' candidates
For h = 3 To 6 ' hobbies
Cells(8, 1) = "Hobbies"
Cells(8, 2) = "Candidates"
If Cells(h, c) = "N" Then
Cells(ans, 1) = Cells(h, 1)
Cells(ans, 2) = Cells(1, c)
ans = ans + 1
Else
End If
Next h
Next c
End
End
End Sub
Appreciate if fellow members can give me a helping hand.
[/FONT]
Last edited by a moderator: