+ Reply to Thread
Results 1 to 7 of 7

User Defined Function Description

  1. #1
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36

    User Defined Function Description

    I have created a custom add-in with custom functions and am trying to make it user friendly for other users. By running the following macro I can add functions to different categories, but I was wondering if there was a way to do this automatically so that anyone that adds this add-in will have the functions show up in the proper category without having to manually run this macro.

    Please Login or Register  to view this content.
    Last edited by djt76010; 11-25-2008 at 06:48 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    You can run registration macros in the Workbook_AddinInstall() event.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36
    I tried adding the following code to the same Module that my custom functions are in, but it didn't work when I added the Add-In. What am I doing wrong?

    Please Login or Register  to view this content.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Add a Stop statement, save the add-in, uninstall, and then reinstall. Does it break?

  5. #5
    Registered User
    Join Date
    10-22-2008
    Location
    NYC
    MS-Off Ver
    2003
    Posts
    4
    It belongs in the ThisWorkBook module for the add-in workbook, not in a standard code module.

    --JP

    Quote Originally Posted by djt76010 View Post
    I tried adding the following code to the same Module that my custom functions are in, but it didn't work when I added the Add-In. What am I doing wrong?

    Please Login or Register  to view this content.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    It belongs in the ThisWorkBook module for the add-in workbook, not in a standard code module.
    That too, thanks JP. Sorry for not reading your post more closely, djt.

  7. #7
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36

    Thanks for the help

    You guys were a big help

+ 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