Hi, to all Gurus!
I wrote the following codes with Inputbox to search from a table , combining it with a vlookup formula.
I want the answer to be displayed on Range("b2") of the active worksheet.
CODEs:
Dim Num as Integer
Num = Inputbox ("Please enter the search number")
Worksheets("sheet1).range("B2").formula = "=vlookup(Num, Range(K2:M6),2)
Each time I type in the number in the Inputbox to look up the resultant figure, Range("B2") displays "#Name?"
Why is this so? I am using MS Office 2000 (version) .
Can anybody help?
Appreciate your kind assistance.

[u]</u>