+ Reply to Thread
Results 1 to 7 of 7

Anyway to skip reference to personal.xlsb when calling functions

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Anyway to skip reference to personal.xlsb when calling functions

    I have a lot of UDF's in my personal macro book. So each time I want to use them I need to type out something like
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Any way I can get Excel to automatically check Personal.xlsb for functions rather than giving me a NAME error?

    Thanks in advance.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Anyway to skip reference to personal.xlsb when calling functions

    The only way I know how to do this is to copy the PERSONAL file to a .xla file and install it as an add-in. Then continue to maintain your UDFs in the add-in rather than PERSONAL.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Anyway to skip reference to personal.xlsb when calling functions

    I've never made an "Add-in" would I need to save it to a specific location? This will work with UDFs but what will happen to my macros? Will they still work as part of an Add-in? Thanks 6 String.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,442

    Re: Anyway to skip reference to personal.xlsb when calling functions

    Add-ins can be stored anywhere. Office, by default, likes to store them/look for them in your add-ins folder under your user name (in Windows), which is a fine place, unless you need the add-in to be more publicly available or your spreadsheets need to migrate from computer to computer. When you use a function in an add-in, you create a link to that file in your spreadsheet (specific to path and file name). So, when you go to a different computer, if the add-in (including path) is different, you have to jump through a couple of hoops to re-establish the link to the add-in. Then when you come back to the original computer, you have to re-establish the link again. If you are always on the same computer, then location does not matter.

    I prefer to continue to store my macros in personal.xlsb, so that they are easy to find and use. So I end up with two files, personal.xlsb and myfunctions.xlam.

    That's how I do it.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Anyway to skip reference to personal.xlsb when calling functions

    Thanks Mr. S

  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

    Re: Anyway to skip reference to personal.xlsb when calling functions

    Some other info, CB:

    A
    B
    C
    1
    Method
    Advantage
    Disadvantage
    2
    Preface the function name with workbook name, e.g.,

    =Personal.xls!MyFunc(...)
    Personal’s macros appear in the Macros dialog.

    No reference required.
    A lot of typing
    3
    Name the VBA project something recognizable (like projPersonal) so you can find it in Tools > References, and then set a reference. Personal’s macros appear in the Macros dialog Requires a reference in every workbook. If the workbook includes a reference to Personal but uses no Personal UDFs, but does include and use some UDFs of its own, and the workbook is sent to someone else, the reference itself will result in a missing reference error. That’s a disincentive to including a reference in your standard workbook template.
    4
    Set Personal’s IsAddIn property to True and then save Personal No reference required Personal’s macros do not appear in the Macros dialog
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Anyway to skip reference to personal.xlsb when calling functions

    Thanks shg. Learn something new every day.

+ 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] Personal.xlsb read only msg
    By mortphil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2014, 10:35 PM
  2. [SOLVED] Can't find PERSONAL.XLSB
    By psychson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2013, 04:59 PM
  3. Replies: 0
    Last Post: 05-10-2012, 09:22 AM
  4. Excel 2007 : personal.xls and personal.xlsb in 2007
    By ali84pk in forum Excel General
    Replies: 0
    Last Post: 02-04-2011, 01:02 PM
  5. Calling Personal.xls functions without needing a 'personal.xls!' prefix
    By Skywalker in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-08-2010, 02:43 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