Dear Guru,
I have this
Dim nameInput as String
nameInput = InputBox("Please specify the value of NAME that you want to
filter." "Specify State")
If nameInput = "" Then
Exit Sub
End If
For x = 1 To FinalRow
NameValue = range("AA" & x).Value
' check Name first
If (StrComp(NameValue, nameInput, 1) = 0) Then
...
...
Next x
In above code, when I run the macro, it showed error in StrComp, where when
I mouseover to NameValue, it showed the "NameValue = Error 2042".
WHY ?????
In Column AA, there are a list of Name, I just want to compare the input
name with the list of name in Column AA (Note that I have a huge list of DB)
Regards, Magix
What am i doing wrong here ?
Bookmarks