Solved

Add default reference in excel VBA

Posted on 2010-11-23
4
918 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
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 33

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with Adding text from a form to a worksheet 5 37
InStr Function not working properly in macro 3 19
MS Excel IF AND OR statement 3 28
Filling Blank Cells 14 19
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

920 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

16 Experts available now in Live!

Get 1:1 Help Now