Solved

Add default reference in excel VBA

Posted on 2010-11-23
4
908 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
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
Michael74 earned 500 total points
Comment Utility
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
Comment Utility
0
 
LVL 14

Expert Comment

by:luconsta
Comment Utility
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 33

Expert Comment

by:Norie
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
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 simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
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…

744 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

13 Experts available now in Live!

Get 1:1 Help Now