+ Reply to Thread
Results 1 to 4 of 4

add function by VBA

  1. #1
    Registered User
    Join Date
    06-17-2012
    Location
    ISRAEL
    MS-Off Ver
    Excel 2010
    Posts
    2

    add function by VBA

    Hi
    I tried to implement the tip from http://www.exceltip.com/show_tip/Cus...ction/147.html
    And got syntax error .
    What might be the problem?
    I did the entire step by steps:
    Build a module:
    Please Login or Register  to view this content.
    Saved it as xlsm
    The function was build and can be operate in the excel sheet.
    ( And give the error )
    Attached Files Attached Files
    Last edited by arlu1201; 06-18-2012 at 04:07 AM. Reason: Code tags

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: add function by VBA

    The code doesn't seem to have a proper minus sign. It works for me when I edit it.

    I can't really see the need for it though, you should be able to do this without VBA
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    06-17-2012
    Location
    ISRAEL
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: add function by VBA


    Thank U for this immediate reply.

    Usually I did this function with names and formula. I am trying to use the VBA function.
    How can I found this error by debugging?
    ( Visually I see no difference )

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: add function by VBA

    The only difference that i could find was the minus sign wasn't recognised. When I change it from my PC it was OK. It might be a difference in your font.

    I would not use a UDF for this, use a manually entered formula.

+ 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