Solved

Add default reference in excel VBA

Posted on 2010-11-23
4
948 Views
Last Modified: 2012-06-27
If I add a reference to a workbook, that reference will be checked everytime I open that workbook.  But what if I want to add a reference at the application level?  Right now every user in my organization has four references checked by default when they open excel.  What if I want to add one more so the default is five?  How to add a default ref?  Default References
0
Comment
Question by:atprato
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
Michael74 earned 500 total points
ID: 34202756
You could make the change to Book.xlt and then all new workbooks should open with this default

http://office.microsoft.com/en-us/excel-help/customizing-excel-defaults-with-templates-HA001054815.aspx 
0
 
LVL 23

Expert Comment

by:Michael74
ID: 34202760
0
 
LVL 14

Expert Comment

by:luconsta
ID: 34206942
Another way to do it could be this: Add references programmatically with VB or VBA and putting the code in the PERSONAL.XLS file that could then add the references automatically.

HTH
0
 
LVL 34

Expert Comment

by:Norie
ID: 34207797
Do you need to have this reference in every workbook?

Will all user's actually have access to it?

That last point is quite important - you could add a 'default' reference and it might work fine for most people but there might be others who don't have the version of the particular application the reference is for.

They might not even have the application.

By the way I'm using 'application' as a generic term - I know all references aren't for applications.

Anyway, if they don't have that reference it could play havoc with all the other references and if they've got any code it could stop working.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

734 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