+ Reply to Thread
Results 1 to 5 of 5

User Defined Functions: can control what named ranges get used?

Hybrid View

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

    User Defined Functions: can control what named ranges get used?

    I am writing custom functions for other people in my office to use as an add-in, with one of the key variables being a named range. Is it possible to add something along the lines of a List Box or a Combo Box so that I can control what named ranges get used?

    Thanks

  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 could use an InputBox and allow people to choose from a list of ranges. But is if really is a UDF and not a sub, that's a very bad idea, becase the UDF will only recalculate when one of its passed arguments changes.
    Last edited by shg; 11-21-2008 at 08:11 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36
    Oops . . . I wasn't quite clear. I was looking to add a List or Combo Box to the "Function Arguments" box that pops up when you click the "fx" button.

  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
    That's not going to happen.

    You can pass the linked cell of a combobox or listbox as an argument.

  5. #5
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36
    I had a feeling that would be the case. Thanks for the reply

+ 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