473,569 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Confused About Which Excel Reference to Use

TC
My project has a reference to the Excel 9.0 Object Library. My
understanding is that, by using a reference to 9.0, I make my
application compatible with Excel 2000, 2002, and 2003. If I use a
reference to 11.0, however, then my application is compatible only
with Excel 2003. Is that correct?

I've found that, as long as I use a reference to Excel 9.0, I get a
warning which says "There are updated custom wrappers available for
the following referenced components: Excel ,VBIDE.". The only way I
can make that warning go away is to change the reference from 9.0 to
11.0. In other words, Visual Studio is encouraging me to use 11.0,
even though 9.0 is the better choice for compatibility. Is this a
glitch in Visual Studio, or is there something going on that I don't
understand?
-TC

Feb 15 '07 #1
3 3529
What are you doing with Excel? If you are creating spreadsheets, you want
to use Excel 9.0, because anything you create with that version will be
readable by 10 and 11, but not vice versa. If you are reading
spreadsheets, you want to use 11.0, because it can read most anything in an
earlier version.

If it's just a warning, you can ignore it and your project will still
compile and work.

Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"TC" <go*********@ya hoo.comwrote in message
news:11******** **************@ k78g2000cwa.goo glegroups.com.. .
My project has a reference to the Excel 9.0 Object Library. My
understanding is that, by using a reference to 9.0, I make my
application compatible with Excel 2000, 2002, and 2003. If I use a
reference to 11.0, however, then my application is compatible only
with Excel 2003. Is that correct?

I've found that, as long as I use a reference to Excel 9.0, I get a
warning which says "There are updated custom wrappers available for
the following referenced components: Excel ,VBIDE.". The only way I
can make that warning go away is to change the reference from 9.0 to
11.0. In other words, Visual Studio is encouraging me to use 11.0,
even though 9.0 is the better choice for compatibility. Is this a
glitch in Visual Studio, or is there something going on that I don't
understand?
-TC

Feb 16 '07 #2
TC
On Feb 15, 3:55 pm, "RobinS" <Rob...@NoSpam. yah.nonewrote:
What are you doing with Excel? If you are creating spreadsheets, you want
to use Excel 9.0, because anything you create with that version will be
readable by 10 and 11, but not vice versa. If you are reading
spreadsheets, you want to use 11.0, because it can read most anything in an
earlier version.

If it's just a warning, you can ignore it and your project will still
compile and work.

Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.

Robin,

You're right. I hadn't realized that, for people who are reading
spreadsheets, 11.0 is more appropriate. In any case, I'm writing
spreadsheets. I know I can ignore the warning, but I find it annoying
nevertheless. If Visual Studio is going to raise warnings about
perfectly legitimate code, then it should give us a way to dismiss
those warnings.

-TC

Feb 20 '07 #3

"TC" <go*********@ya hoo.comwrote in message
news:11******** **************@ v45g2000cwv.goo glegroups.com.. .
On Feb 15, 3:55 pm, "RobinS" <Rob...@NoSpam. yah.nonewrote:
>What are you doing with Excel? If you are creating spreadsheets, you
want
to use Excel 9.0, because anything you create with that version will be
readable by 10 and 11, but not vice versa. If you are reading
spreadsheets , you want to use 11.0, because it can read most anything in
an
earlier version.

If it's just a warning, you can ignore it and your project will still
compile and work.

Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.


Robin,

You're right. I hadn't realized that, for people who are reading
spreadsheets, 11.0 is more appropriate. In any case, I'm writing
spreadsheets. I know I can ignore the warning, but I find it annoying
nevertheless. If Visual Studio is going to raise warnings about
perfectly legitimate code, then it should give us a way to dismiss
those warnings.

-TC
There *is* a way to dismiss some errors or warnings. You can look in the
list displayed on the Compile tab of the project settings. In the middle
are some conditions that you can turn off as warnings.

There's another list under Debug/Exceptions, and hopefully it's in there
somewhere.

Good luck.
Robin S.

Feb 20 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
20275
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet (MyXL). It uses the worksheet's Application property to make Microsoft Excel visible, to close it, and so on. Using two API calls, the DetectExcel Sub...
2
2725
by: Jean | last post by:
Hi all, I have a problem automating an Excel object from Access. I have the following fucntion that creates a table in Excel from an Access query: Function CreateTable2(strSourceName As String, _ strFileName As String) As Variant
17
6320
by: Mansi | last post by:
I need to do some research on how to use excel automation from c#. Does anyone know of any good books related to this subject? Thanks. Mansi
1
3251
by: Benny Ng | last post by:
Hi,All, Export Method: ------------------------------------------------------------------------- strFileNameExport = "Results" Response.Clear() Response.Buffer = True Response.ContentType ="application/vnd.ms-excel" 'application/msword
5
3143
by: Mike in Santa Rosa | last post by:
I'm trying to get a simple c# app built that can launch/manipulate an excel workbook, sheet. I've chased down several examples and can't any of them to work. So I must be doing somethnig obviouslt wrong. Most examples to get things started include something: using Microsoft.Office.Interop.Excel; or using Excel; or using Excel =...
9
4524
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso TypeOf obj Is IDisposable Then DirectCast(obj, IDisposable).Dispose()
7
7053
by: ddecoste | last post by:
I have a need to add a visual representation to some data in Access. I need to draw a matix of squares inside another square. I have all the data that I need in a record in Access. The data changes according to what the user inputs. I know that Access does not allow you to draw on forms so I decided to put the output in an Excel file for...
2
4917
by: Nicholas Dreyer | last post by:
The following error Run-time exception thrown : System.Runtime.InteropServices.COMException - Error loading type library/DLL. happens while running the code listed at the bottom of this message in the environment shown here: Operating System: Microsoft Windows Version 5.1 (Build
3
4826
by: pleaseexplaintome_2 | last post by:
using the code below (some parts not included), I create a new excel workbook with spreadheets. I then want to delete a spreadsheet, but a reference remains open and excel stays in task manager when the code highlighted below is used. can someone help me identify what object remains open and how to release that reference? thanks using...
0
7698
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.