+ Reply to Thread
Results 1 to 7 of 7

Add-in Functions Not Available

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Add-in Functions Not Available

    I've created an add-in, and put all of my favorite macros and UDFs in it. I used Ron Debruin's "MyAddin.xlam" to do it, and so I have a nifty menu to call all my macros, and they're all working just fine. My problem is my UDFs; when I'm in a workbook and click my Fx button, I don't see the functions listed individually, nor do I have a listing for "MyAddin's Functions". If I click on "UserDefined" they're not listed there either. What do I need to do to be able to use the UDFs contained in my addin?

    Thanks,
    John

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Add-in Functions Not Available

    are the udfs all in normal modules, not marked with option private module?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Add-in Functions Not Available

    All of the the Macros and Functions are in the "MacroModule", which IS marked "Option Private Module". That comes standard with Ron's "MyAddin.xlam". All of my macros are accessible leaving it marked that way, but should I move my functions out of that module into one that doesn't have the "private" option at the top? Or, would it better to remove "Private" from my MacroModule?

    My intent for this addin is that, once I have it working right for me, I want to roll it out to the rest of my team. How does the "Option Private Module" affect that?
    Attached Images Attached Images

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Add-in Functions Not Available

    Yes, move the functions you want visible to a module that is not marked Private. The whole purpose of that is to hide routines from the UI.
    Last edited by romperstomper; 08-23-2012 at 01:09 PM.
    Remember what the dormouse said
    Feed your head

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Add-in Functions Not Available

    Easy enough. But for my continuing education, should I leave the module containing my macros marked private? And if so, why?

    Thanks.

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Add-in Functions Not Available

    With an addin it doesn't really matter since they won't appear in the macros dialog anyway.

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Add-in Functions Not Available

    Got it. Thanks.

+ 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