# vba for Excel - is there a way to get those helper tags on user defined functions?

**URL:** <https://boards.straightdope.com/t/vba-for-excel-is-there-a-way-to-get-those-helper-tags-on-user-defined-functions/519511>\
**Category:** Factual Questions\
**Created:** [November 30, 2009, 8:14pm UTC](https://boards.straightdope.com/t/vba-for-excel-is-there-a-way-to-get-those-helper-tags-on-user-defined-functions/519511 "2009-11-30T20:14:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Engywook](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@Engywook](https://boards.straightdope.com/u/Engywook)\
**Post date:** [November 30, 2009, 8:14pm UTC](https://boards.straightdope.com/t/vba-for-excel-is-there-a-way-to-get-those-helper-tags-on-user-defined-functions/519511/1 "2009-11-30T20:14:35Z")

</div>

I’m writing a couple of user defined functions in my personal.xsl file. One thing I’ve noticed a while back - udf’s don’t get those helper tags when used within a spreadsheet. Is there a way to do that?

For example, if I wanted to use a function like this:

```auto

Public Function area(length As Integer, width As Integer)
' do stuff
End Function

```

it would be awfully nice if the expected parameters would appear as you type **=area** in a cell.

Probably is a simple answer (and I suspect it’s a simple “no”), but I do find that VBA has a way of making answers to simple questions very hard to find online…

---

<div class="post-metadata">

**Author:** ![Duke](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Duke](https://boards.straightdope.com/u/Duke)\
**Post date:** [November 30, 2009, 9:20pm UTC](https://boards.straightdope.com/t/vba-for-excel-is-there-a-way-to-get-those-helper-tags-on-user-defined-functions/519511/2 "2009-11-30T21:20:35Z")

</div>

> [@Engywook](#):
>
> Probably is a simple answer (and I suspect it’s a simple “no”), but I do find that VBA has a way of making answers to simple questions very hard to find online…

Oh hell yes.

I’ll try to post an answer to this when I, uh, figure it out myself…

---

<div class="post-metadata">

**Author:** ![CookingWithGas](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cookingwithgas/32/485_2.png) [@CookingWithGas](https://boards.straightdope.com/u/CookingWithGas)\
**Post date:** [November 30, 2009, 9:28pm UTC](https://boards.straightdope.com/t/vba-for-excel-is-there-a-way-to-get-those-helper-tags-on-user-defined-functions/519511/3 "2009-11-30T21:28:26Z")

</div>

I do not know a way so that this happens when you simply type the function name into a cell, as for built-in functions, but this happens automatically when you insert a function using the Insert, Function sequence. When the dialog box opens, select “User Defined Functions” from the list of categories, then pick your function. It will prompt for parameters.

You can add a description using [these instructions](http://www.ozgrid.com/VBA/DesciptionToUDF.htm).

---

<div class="post-metadata">

**Author:** ![Engywook](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@Engywook](https://boards.straightdope.com/u/Engywook)\
**Post date:** [December 2, 2009, 4:10pm UTC](https://boards.straightdope.com/t/vba-for-excel-is-there-a-way-to-get-those-helper-tags-on-user-defined-functions/519511/4 "2009-12-02T16:10:55Z")

</div>

Thanks, **Cooking**!

Would be nice if it could just be there without requiring user setup, but since I am going to have to walk some folks through the personal.xls file anyway…

Ah well.
