I am trying to find an Employee name and their Import date from a spreadsheet called CashReward.
The coding below is appearing with an error message 'Unable to get the Vlookup property of the WorksheetFunction class'. I have tried changing the data type to CDate
and CStr
but no use.
concat = EmpName & GetDate
BasicSal = WorksheetFunction.VLookup(CVar(concat), Sheets("CashReward").Range("G3:K" & Cashlastrow), 2, False)
Thanks in advance
CVar()
function on yourconcat
variable? How isconcat
dimensioned -- as a string? – David Zemens Mar 19 '13 at 17:08BasicSal = WorksheetFunction.Match(concat,Sheets("CashReward").Range("G:G"), False)
and let me know what it returns. – David Zemens Mar 19 '13 at 17:11