+ Reply to Thread
Results 1 to 5 of 5

UDF as a Add-in wont add description of variables

  1. #1
    Forum Contributor
    Join Date
    08-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    163

    UDF as a Add-in wont add description of variables

    i created a function in vba and saved it as a add-in. I want to add the variable descriptions so when a user goes to use the function they can get a description of what each variable is.
    here is the function and then the sub to add the desc.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    I tried calling the ChevronMarking_Desc sub on an on open event but i think because it is a add-in and the workbook is hidden i got an error saying. cannot edit a macro on a hidden workbook this error happens when on the Application.MacroOptions line.
    The formula itself is working
    Anyone know how to get the desc of variables to show when on the Insert function wizard???
    thanks
    JD

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: UDF as a Add-in wont add description of variables

    Have you opened the Macro Dialog box, selected Options and entered the description in that?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    08-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: UDF as a Add-in wont add description of variables

    I wrote the code in excel VBE and everything worked, once saving it as an add-in the descriptions arn't being added
    Please Login or Register  to view this content.
    this last line no longer works. It has something to do with the workbook being hidden.
    I'm not sure what you a talking about in the macro dialog box, the options button doesnt open anything when i click on it. the main part i want to to add the ArgumentDescriptions in the macroOptions for the UDF.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: UDF as a Add-in wont add description of variables

    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  5. #5
    Forum Contributor
    Join Date
    08-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: UDF as a Add-in wont add description of variables

    here is a much easier solution.
    i just added workbooks.add in the code below

    Please Login or Register  to view this content.
    and this code in the ThisWorkbook
    Please Login or Register  to view this content.
    then save it as a add-in.
    open excel and add it in your add-ins. then it works perfectly.

+ 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. [SOLVED] Need A Simple Description of What Variables are Doing in This Sub
    By jbwitty in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-06-2013, 12:29 PM
  2. [SOLVED] finding an output from 5 variables in an array using exterior input user variables
    By Allsort in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2013, 11:16 AM
  3. Replies: 3
    Last Post: 09-11-2012, 02:03 AM
  4. macro that finds variables in one column and enters values if variables found
    By xln00b in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2010, 08:22 AM
  5. [SOLVED] Variables description in a function
    By Lasse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2006, 05:25 AM

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