+ Reply to Thread
Results 1 to 4 of 4

I have had difficulty in creating user defined functions in Excel

Hybrid View

  1. #1
    MichaelG
    Guest

    I have had difficulty in creating user defined functions in Excel

    I have been using the Wrox Excel VBA 200 book.

    When I create a user defined function for use in Excel Workbook (ie typing
    the function directly into the cell), I get an error message name #Name? when
    I enter the function into a cell.

    This happens even when I am copying examples directrly from the book.

    Clearly I am doing something wrong but what is it

  2. #2
    DerbyJim1978
    Guest

    RE: I have had difficulty in creating user defined functions in Excel

    Michael,

    I had a similar problem a few weeks ago... Have you tried going into tools -
    Add Ins - Analysis toolpak?

    Jim

    "MichaelG" wrote:

    > I have been using the Wrox Excel VBA 200 book.
    >
    > When I create a user defined function for use in Excel Workbook (ie typing
    > the function directly into the cell), I get an error message name #Name? when
    > I enter the function into a cell.
    >
    > This happens even when I am copying examples directrly from the book.
    >
    > Clearly I am doing something wrong but what is it


  3. #3
    Niek Otten
    Guest

    Re: I have had difficulty in creating user defined functions in Excel

    Did you type or copy the functions into a Standard Module? It should not be
    in a Worksheet, Claas or any other Module

    In the VB Editor: Insert>Module. Enter your function there.

    --
    Kind regards,

    Niek Otten

    Microsoft MVP - Excel

    "MichaelG" <[email protected]> wrote in message
    news:[email protected]...
    >I have been using the Wrox Excel VBA 200 book.
    >
    > When I create a user defined function for use in Excel Workbook (ie typing
    > the function directly into the cell), I get an error message name #Name?
    > when
    > I enter the function into a cell.
    >
    > This happens even when I am copying examples directrly from the book.
    >
    > Clearly I am doing something wrong but what is it




  4. #4
    MichaelG
    Guest

    Re: I have had difficulty in creating user defined functions in Ex

    Many thanks. That worked a treat!

    Cheers

    MichaelG

    "Niek Otten" wrote:

    > Did you type or copy the functions into a Standard Module? It should not be
    > in a Worksheet, Claas or any other Module
    >
    > In the VB Editor: Insert>Module. Enter your function there.
    >
    > --
    > Kind regards,
    >
    > Niek Otten
    >
    > Microsoft MVP - Excel
    >
    > "MichaelG" <[email protected]> wrote in message
    > news:[email protected]...
    > >I have been using the Wrox Excel VBA 200 book.
    > >
    > > When I create a user defined function for use in Excel Workbook (ie typing
    > > the function directly into the cell), I get an error message name #Name?
    > > when
    > > I enter the function into a cell.
    > >
    > > This happens even when I am copying examples directrly from the book.
    > >
    > > Clearly I am doing something wrong but what is it

    >
    >
    >


+ 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