Solved

Personal.xlsb

Posted on 2011-09-02
6
335 Views
Last Modified: 2012-05-12
Hi there

Hopefully a fairly simple question.  How do I access formulae in my personal.xlsb from another worksheet without having to prefix the formula in the cell with personal.xlsb! ?  I am using Excel 2007.

Ideally the formulae in this sheet should appear in the autocomplete list when I start typing formulae.

Thanks
0
Comment
Question by:mkalmek
  • 3
  • 2
6 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
Comment Utility
I assume you mean "functions" and not "formulae".

In that case, you need to put the functions in an add-in file, rather than your personal macro workbook.

Some resources for creating add-ins:

http://msdn.microsoft.com/en-us/library/aa140936(v=office.10).aspx
http://www.ozgrid.com/VBA/excel-add-in-create.htm
http://www.cpearson.com/excel/CreateAddIn.aspx

Please note that if you put these functions in an add-in and then refer to them in your workbooks, if you send that workbook to a person who does not also have the add-in then that person will get #NAME errors because Excel will be unable to resolve the functions.
0
 
LVL 17

Expert Comment

by:andrewssd3
Comment Utility
I don't think what you ask is possible - Excel needs to prefix references to UDFs with their file location so that it knows where to find them (surprise!).  Only those functions that are in the current workbook don't get prefixed.  Similarly you do have to select UDFs from the User-defined list in the function wizard as they don't appear in the auto-complete lists.

0
 
LVL 92

Expert Comment

by:Patrick Matthews
Comment Utility
andrewssd3,

>>Only those functions that are in the current workbook don't get prefixed

That is not correct.  Functions in an add-in do not have to be prefixed.  That is one of the attractions of using add-ins.

Patrick
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 17

Expert Comment

by:andrewssd3
Comment Utility
matthewspatrick,

Agreed - sorry I wasn't thinking about add-ins and should have put in a caveat
0
 

Author Comment

by:mkalmek
Comment Utility
Thanks for the help on using an add-in rather than personal.xlsb.

The function (not formulae :) ) names still do not pop up in the autocomplete when I start typing in a cell in my workbook.  Can I get them to do so?
0
 
LVL 92

Expert Comment

by:Patrick Matthews
Comment Utility
Excel 2007 does not have that feature; that version will only auto-complete native functions.

Excel 2010 will auto-complete function names from an add-in, although the full IntelliSense is not available (thus unlike native functions, you will not get hints for the various function arguments).

What you can do, is if you are in the function wizard, switch the category to user defined, and that will list your various available UDFs.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now