+ Reply to Thread
Results 1 to 4 of 4

my user defined function doesn'work

  1. #1
    Registered User
    Join Date
    05-21-2012
    Location
    Bucurest, Romania
    MS-Off Ver
    Excel 2003
    Posts
    3

    my user defined function doesn'work

    dear all,
    I tried to create a User Defined function to calculate a price with some if nested and
    the item keep from tables.

    Could you help me ?
    many thanks

    I have excel 2003.

    here the code and the sheet in simplified way as attachment

    Please Login or Register  to view this content.
    [/SIZE]
    Attached Files Attached Files
    Last edited by arlu1201; 05-21-2012 at 03:11 AM. Reason: Please put code tags in future.

  2. #2
    Registered User
    Join Date
    05-21-2012
    Location
    Bucurest, Romania
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: my user defined function doesn'work

    Dear all,
    Sorry, I see some errors in the code
    that I modified in this way


    Please Login or Register  to view this content.
    Last edited by zbor; 05-21-2012 at 04:12 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: my user defined function doesn'work

    There were some duplicate Dim statements in the UDF, and a typing error in the formula in cell A1.
    This modified version produces a result, check if it's mathematically correct.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-21-2012
    Location
    Bucurest, Romania
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: my user defined function doesn'work

    Many thanks Wher,
    you give a big help !

    have a nice life
    Andrea

+ 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