+ Reply to Thread
Results 1 to 4 of 4

Invalid Outside Procedure

  1. #1
    Registered User
    Join Date
    02-24-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Invalid Outside Procedure

    I'm trying to create a new function that I'll be able to use within my spreadsheet.



    Please Login or Register  to view this content.
    When I try to use this function in the worksheet I get an "Invalid Outside Procedure" error and it highlights the first input x in the first line of code

    Any ideas?
    Last edited by bookworm121; 02-24-2013 at 06:58 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Invalid Outside Procedure

    Where is the function stored? It should be in the Standard Modules and not the sheet module. Is this your case?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Invalid Outside Procedure

    I think there is another fragment outside of that procedure that's causing the problem.

    You could replace your UDF with

    Please Login or Register  to view this content.
    ... or just a formula: =h * BINOMDIST(x, n, p, True)
    Last edited by shg; 02-24-2013 at 07:36 PM.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Invalid Outside Procedure


+ 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