Hi and thanks for wanting to help. I understand you aint gonna do my exercises for me, so Ill show you what Ive done so far. That being said, this is for an Advance Excel class in Graduate Business School and the professor is going really fast... 
So here is what Ive done so far: I made different attempts
Here is the 1st one:
Public Sub NameListCheck()
Dim Name As String
Name = InputBox("What is your name?")
If Name = Range("A:A") Then
MsgBox ("Your name is on the list")
Else
MsgBox ("Your Name is not on the list")
End If
End Sub
This didnt work due to: If Name = Range("A:A") Then
So I continued and tried this (which was a bad idea):
Public Sub NameListCheck()
Dim Name As String
Dim x As Range
Name = InputBox("What is your name?")
For Each x in Range("A:A")
If Name = x Then
MsgBox ("Your name is on the list")
Else
MsgBox ("Your Name is not on the list")
End If
Next
End Sub
This didnt work either and the loop never ends so I had to terminate excel....
I tried a third thing:
Public Sub NameListCheck()
Dim Name As String
Dim x As Variant
Dim found As Boolean
Name = InputBox("What is your name?")
For Each x In Range("A1:A30")
If Name = x Then
found = True
Else
found = False
End If
Next
If found = True Then
MsgBox ("Your name is on the list")
Else
MsgBox ("your name is not on the list")
End If
End Sub
This continuously displays the msgbox "your name is not on the list" no matter if I write a name that is on the list or not.
I tried with the variable found as an integer either:
Public Sub NameListCheck()
Dim Name As String
Dim x As Variant
Dim found As Integer
Name = InputBox("What is your name?")
For Each x In Range("A1:A30")
If Name = x Then
found = 1
Else
found = 2
End If
Next
If found = 1 Then
MsgBox ("Your name is on the list")
Else
MsgBox ("your name is not on the list")
End If
End Sub
Still... same problem. I dont really know what to do with this...
Im sure the solution is super simple and I just don't think about this the right way (direction) so if anyone, wants to give me a hint or let me know what I am not doing properly here, I will be SUPER happy.
thanks a lot!
Bookmarks