Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
My first macro - doesnt work - function not recognised
I have written my own function FindNominal (as below) in a macro in excel. I
want to use this function repeatedly in my excel spreadsheet. Function FindNominal(NomCode) FindNominal = Vlookup(NomCode, IMPORTDOC, 5 false) End Function but it does NOT work. It reports Vlookup is not recognised. Do i need to write an import statement? IMPORTDOC is defined as a range of cells in excel by the name, define command. I take it this is acceptable? Thanks |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
My first macro - doesnt work - function not recognised
Please decide where you want to post
-- Don Guillett SalesAid Software "James Cornthwaite" wrote in message ... I have written my own function FindNominal (as below) in a macro in excel. I want to use this function repeatedly in my excel spreadsheet. Function FindNominal(NomCode) FindNominal = Vlookup(NomCode, IMPORTDOC, 5 false) End Function but it does NOT work. It reports Vlookup is not recognised. Do i need to write an import statement? IMPORTDOC is defined as a range of cells in excel by the name, define command. I take it this is acceptable? Thanks |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
My first macro - doesnt work - function not recognised
Function FindNominal(NomCode)
FindNominal = WorksheetFunction.VLookup(NomCode, Range("IMPORTDOC"), 5, False) End Function "James Cornthwaite" wrote in message ... I have written my own function FindNominal (as below) in a macro in excel. I want to use this function repeatedly in my excel spreadsheet. Function FindNominal(NomCode) FindNominal = Vlookup(NomCode, IMPORTDOC, 5 false) End Function but it does NOT work. It reports Vlookup is not recognised. Do i need to write an import statement? IMPORTDOC is defined as a range of cells in excel by the name, define command. I take it this is acceptable? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
numerical integration | Excel Discussion (Misc queries) | |||
Function triggering a macro | Excel Worksheet Functions | |||
Function Macro for Nested IF | Excel Worksheet Functions | |||
How do I record a macro which should work on multiple files ? | Excel Discussion (Misc queries) | |||
Record Macro Relative does not work? | Excel Discussion (Misc queries) |