Programatically Add a Reference

Oorang

Well-known Member
Joined
Mar 4, 2005
Messages
2,071
Hello all,
I making a reference to the Excel 11.0 Object Library in another application for it's speech capacity. However when I rolled it out I discovered some of my users were using 10.0. This created a missing reference and all sorts of badness. as a work around I just removed the speach features, but I really wanted to keep them. I know how to check to see if a reference is included and how to see if it is broken. But I don't know how to add one on the fly. Is there way to do this? Is there a general approach commonly used to this problem?

Edit:
One other question. I have also noticed that if someone makes a file with a reference to an OLDER version (such as 10.0) newer versions seem to automatically upgrade to 11.0. It just won't iterate downward. Is there any way to make a reference to the 10.0 file even if your PC has the 11.0 file?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,216,069
Messages
6,128,600
Members
449,460
Latest member
jgharbawi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top