Hi,
I'm trying to write a simple funtion (my first!).
Function is:
There is no problem with the vlookup range etc. I get a #VALUE. Any help would be great!![]()
Please Login or Register to view this content.
Thanks,
Ben.
Hi,
I'm trying to write a simple funtion (my first!).
Function is:
There is no problem with the vlookup range etc. I get a #VALUE. Any help would be great!![]()
Please Login or Register to view this content.
Thanks,
Ben.
Last edited by Paul; 09-25-2008 at 11:54 PM.
Hi Perdben, welcome to the forum. Please take a moment to read our forum rules. In the future, please wrap your code using the # button in the post editing window. I've done it for you this time, but future posts may be locked.
As for your issue, when referring to a named range, use Range("Your_Named_Range"), qualify the variable types you're passing to the function, and use Application.WorksheetFunction.[some_function_here].
For example:
Be sure to put this into a standard Module, not in your Worksheet or ThisWorkbook code window.![]()
Please Login or Register to view this content.
OK, that worked well. Thanks very much!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks