Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8124355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:26:11+00:00 2026-06-06T06:26:11+00:00

When I add a public function to a standard code module in Excel it

  • 0

When I add a public function to a standard code module in Excel it shows up in the Insert Function wizard in the catch-all category “User Defined.”

Is there any way to:

  1. Keep the function public (so it may be called from other modules) but hide it from the Excel function wizard?
  2. Make the function appear in a built-in category (e.g., “Financial”, “Statistical”, “Logical”)?
  3. Create my own category (e.g., “Nonsensical”) and have my function appear there?

I only need to be able to make one of the above cases work, but I’d be curious to know if each one is possible.

Note: I will gladly split this into three separate questions if the community feels that is more appropriate. I am thinking there may be a single answer with only slight variation among the three questions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T06:26:12+00:00Added an answer on June 6, 2026 at 6:26 am

    Application.MacroOptions is the command you are after

    This example adds a user-defined macro called TestMacro to a custom category named My Custom Category.

    Function TestMacro()
        MsgBox ActiveWorkbook.Name
    End Function
    
    Sub AddUDFToCustomCategory()
        Application.MacroOptions Macro:="TestMacro", Category:="My Custom Category"
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code in my moving object: ObjectX.Location.Add(Velocity * Utils.GetMoveDir(start, destination)); Utility function: public static PointF
Classes that implement IEnumerable and provide a public void Add(/* args */) function can
Public MaintenanceMenuList As ListView Function AddItems() Dim lstModules As New ListBox() MaintenanceMenuList.Items.Add(item_1) lstModules.Items.Add(MaintenanceMenuList) End
I have a fairly standard .Net MVC Controller method: public ActionResult Add(Customer cust) {
public function add($child){ return $this->children[]=$child; } Btw, this is an excerpt from PHP in
I'm trying to add a public API to my app to allow users to
i have written a method in java like this public boolean ADD(String ID,String Name,String
Simple. If I use: public void Add(params int[] values) Then I can use this
interface Addable<E> { public E add(E x); public E sub(E y); public E zero();
Sf2.0, standard blog for example. Code of routing.yml: DevBlogBundle_post_show: pattern: /posts/{id} defaults: { _controller:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.