+ Reply to Thread
Results 1 to 2 of 2

Creating a User-Defined Function

  1. #1
    Forum Contributor
    Join Date
    12-15-2009
    Location
    Herndon, VA
    MS-Off Ver
    Excel 2010
    Posts
    163

    Creating a User-Defined Function

    Rather that invoking a UDF from VBA code, is it possible to create a UDF, then go into an cell, proceed to enter a formula with an equal sign, and the name of your UDF will pop up just like a built-in function such as SUM or VLOOKUP?

    For example, in Module 1, write the code for a UDF called DoubleSum.

    Then in a spreadsheet with values, type in = and have the function called DoubleSum pop up as a choice?

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Creating a User-Defined Function

    Yes that is possible.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

+ 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. Creating An Array to Be Used In a User Defined Function
    By ashleys.nl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2012, 08:17 PM
  2. Excel 2007 : Creating user defined function
    By cassieyi in forum Excel General
    Replies: 1
    Last Post: 10-02-2011, 04:58 PM
  3. Creating a deeply nested IF MATCH user defined function
    By rrbest in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2011, 01:23 PM
  4. Creating my own user defined function help statements
    By Craig in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2006, 12:55 PM
  5. creating help info for user defined function
    By Joe Carroll in forum Excel General
    Replies: 3
    Last Post: 06-04-2005, 07:05 PM

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