Solved

Personal.xlsb - References in VBA for Excel 2010

Posted on 2013-06-10
3
1,564 Views
Last Modified: 2013-06-29
Hello,
I want to use my functions in all my Excel workbooks, but I don't want to have to type PERONAL.XLSB! in front of the function name every time.
I thought that i hcould permanently add my personal.xlsb vba project as a reference (In Tools -> References) and that my functions would become available just using their vba name (se attached).
Am I wrong about this ? ie: Do I need to create an add-in ?
Any help would be appreciated  - in the attached screen shots I have an example of my personal .xlsb (I have changed the project name to be CS_Project - this is the library of functions I would like to add to the references dialog box, also attached).
I hope this makes sense - I'm looking forward to any replies as this is driving me a bit mad now !!

Best regards,

Craig
Project name exampleTools -> References
0
Comment
Question by:slobber72
3 Comments
 
LVL 39

Assisted Solution

by:nutsch
nutsch earned 250 total points
ID: 39236295
For functions to work without the workbook name, you'll have to put them in an add-in that's not your personal.xlsb.

Little setup time, but once setup not much maintenance issue.

This tutorial has got it all described: http://fontstuff.com/vba/vbatut03.htm

Thomas
0
 
LVL 21

Accepted Solution

by:
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP earned 250 total points
ID: 39236303
0
 

Author Closing Comment

by:slobber72
ID: 39287629
Sorry for the delay - I was able to find what I needed from these references.

My main issue - I was trying to reference a project to itself.  DOH!

Using the addins will be a good future solution for me though.

Thanks again for the time spent looking at this for me.

Craig
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel Formula 16 46
Rather Simple Formatting Question 6 24
Excel - DATEDIF error #NUM 6 26
vba - Word save error 11 10
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

821 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