Adding Reference

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
2,099
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I want to add "Microsoft Excel XX.X Object Library" to Excel. I have office 2003 so pretty sure XX.X is 11.0.

But no such reference appears in the reference list. Googling for help gives this

In VS, right click the references > Add Reference... > COM tab
Then select "Excel 11.0 Object Library" to add its PIA into your project,

Sounds like good instructions, but I have no idea was "VS" is, a right click on 'References' seems to do nothing
and I can't see any COM tab.Can anyone help me out with further instructions ? Thanks !
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
VS stands for Visual Studio. The Object Library is probably already available.

In the Excel Visual Basic Editor, on the menu, click Tools >> References...
 
Upvote 0
In the Excel Visual Basic Editor, on the menu, click Tools >> References...

I have done that, but I see nothing that matches "Microsoft Excel....". I presume that is what it should be listed under ?
 
Upvote 0
Deleted, talking nonsense
 
Last edited:
Upvote 0
In Excel 2016 U.S. stand-alone the 'Microsoft Excel 16.0 Object Library' is part of the file EXCEL.exe. And yes, Excel 2003 was version 11.xx.x.

What is the reason you need to add the library? Is it for language support? Are you running into problems with your code that could be caused by a missing library?

I did run across a tutorial for automating embedded charts that instructs the reader to add the Excel object library. Those instructions were pointed at users of Visual Studio .Net: https://msdn.microsoft.com/en-us/li...c_xl_manipulatecharts_usingautomationtocreate
 
Upvote 0
Thanks for replying... no, after a bit of research I find I misunderstood instructions. Sorry!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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