+ Reply to Thread
Results 1 to 2 of 2

using excel functions in a macro - my first macro! ?

  1. #1
    James Cornthwaite
    Guest

    using excel functions in a macro - my first macro! ?

    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. #2
    Don Guillett
    Guest

    Re: using excel functions in a macro - my first macro! ?

    pls post in ONE group only

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "James Cornthwaite" <[email protected]> wrote in message
    news:[email protected]...
    >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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1