+ Reply to Thread
Results 1 to 5 of 5

Why does my UDF returns empty ?

  1. #1
    Registered User
    Join Date
    02-27-2017
    Location
    Mexico
    MS-Off Ver
    2013
    Posts
    9

    Why does my UDF returns empty ?

    I just tested a very basic UDF:

    ------------------------------------------------------------------------
    Function DatabaseColumnSearcher(StartColumn As Single)

    DatabaseColumnSearcher = StartColumn*2

    End Function
    -------------------------------------------------------------------------

    And when i call it like this in my code

    StartColumn = DatabaseColumnSearcher(16)

    I know its an useless function, the real one its more complex, i still dont undertand what im doing wrong

    thank you very much in advanceˇ

  2. #2
    Registered User
    Join Date
    02-27-2017
    Location
    Mexico
    MS-Off Ver
    2013
    Posts
    9

    Re: Why does my UDF returns empty ?

    I tested it in a new book and i do get the value correctly, i dont get why i get empty

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Why does my UDF returns empty ?

    Hello
    I have tested that and it is working well ..
    Have a look again
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,525

    Re: Why does my UDF returns empty ?

    This gives me 32.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-27-2017
    Location
    Mexico
    MS-Off Ver
    2013
    Posts
    9

    Re: Why does my UDF returns empty ?

    Ok sorry guys it seemed to be that i got the UDF inside a UserForm and i did not declared public, srry for the confution

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula returns a zero value instead of expected empty value
    By pongmeister in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-25-2017, 10:44 AM
  2. [SOLVED] IF formular returns 0, instead it should return EMPTY
    By kian82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-12-2017, 08:20 AM
  3. DAX calculation returns empty
    By baronng in forum Office 365
    Replies: 0
    Last Post: 09-19-2013, 03:13 AM
  4. [SOLVED] Lookup (vector) returns 0 when cell is empty
    By kieranm105 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2013, 04:51 AM
  5. Excel 2007 : =Average returns #Value if a cell is empty
    By mojogoon in forum Excel General
    Replies: 7
    Last Post: 11-22-2010, 02:31 PM
  6. Formula returns #Value! empty cell value
    By ingineu in forum Excel General
    Replies: 4
    Last Post: 10-02-2006, 05:49 AM
  7. [SOLVED] When I enter a number in an empty cel, de cel returns the value d.
    By Paul KdN in forum Excel General
    Replies: 2
    Last Post: 01-13-2005, 06:06 AM

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