ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Vlookup in user defined function (https://www.excelbanter.com/excel-programming/287697-vlookup-user-defined-function.html)

Tim Svensson

Vlookup in user defined function
 
I have a user defined function, but Vlookup doesnt work in
it. This i the part in the function that doesn't work...
any ideas?

thanks

/Tim


Function test(value, table)

test = VLookup(value, table, 2, False)

End Function

Sriram N A

Vlookup in user defined function
 
I think you need ot qualify it fully, as in
test = Application.WorksheetFunction.VLookup(value, table, 2, False)

"Tim Svensson" wrote in message
...
I have a user defined function, but Vlookup doesnt work in
it. This is the part in the function that doesn't work...
any ideas?





All times are GMT +1. The time now is 10:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com