Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Undefined unction when using VLOOKUP
When I try to use VLOOKUP or MATCH in VBA, it tells me
function not defined. I checked the References but did not know which reference to use. Help! Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Undefined unction when using VLOOKUP
"cici" wrote in message
... When I try to use VLOOKUP or MATCH in VBA, it tells me function not defined. I checked the References but did not know which reference to use. Help! Thanks Are you prefixing the names of the functions with Application or Application.WorksheetFunction? Application.WorksheetFunction.VLookup should give you access to all the Excel worksheet functions you can use from VBA. The syntax above will throw a run-time error if the value is not located. The following syntax: Application.Vlookup will return a Variant error value if the value isn't located. -- Rob Bovey, MCSE, MCSD, Excel MVP Application Professionals http://www.appspro.com/ * Please post all replies to this newsgroup * * I delete all unsolicited e-mail responses * |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Undefined unction when using VLOOKUP
cici wrote:
When I try to use VLOOKUP or MATCH in VBA, it tells me function not defined. I checked the References but did not know which reference to use. Help! Thanks Hi try ret_value=Application.WorksheetFunction.VLookup(.. .your parameters...) Frank |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
If Unction with text | Excel Worksheet Functions | |||
VBA Functions Undefined | Excel Worksheet Functions | |||
Error: Undefined or non-rectangular name | Excel Worksheet Functions | |||
Undefined function error | Excel Discussion (Misc queries) | |||
Variable Undefined When Blank | Excel Programming |