+ Reply to Thread
Results 1 to 2 of 2

#NAME? error when using user defined function

  1. #1
    Registered User
    Join Date
    10-01-2012
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    #NAME? error when using user defined function

    Hi all

    I've done a comprehensive search and can't find the answer to this problem so I'm hoping someone can help.

    I have a user defined function NetWorkHours which I have been storing in my personal.xlsb workbook so that I can access it when I open any workbook.
    This has been working fine until I had a clear out of my macros recently and moved it out of personal.xlsb and into personal.xlsm, forgetting that it needed to be in personal.xlsb. The function is no longer working.
    I moved the module back into personal.xlsb but the problem still persists. I have tried copying it into a current workbook and the function is recognised (i.e. when I start typing NetWorkHours it comes up in the little drop down), however I'm still getting the #NAME#?error.

    I know the code works as I was originally sent it in an email from a colleague, and when I open his workbook and try to use it in the associated worksheet the function works fine. The problem just seems to be with getting it to be recognised in my own workbook.

    This has me stumped! Hopefully it's something really simple that I'm missing.

    If it helps the code is below (although as stated above I know that this code is OK).

    Please Login or Register  to view this content.
    Many thanks

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: #NAME? error when using user defined function

    After your black out, you installed excel again?

    In that case the personal.xlsb is (mabybe) stored in another directory?

    I don't know if this is an solution, it's just a thought.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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