473,382 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 3517
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*********@yahoo.comwrote in message
news:11**********************@k78g2000cwa.googlegr oups.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*********@yahoo.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.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
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...
2
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...
17
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
by: Benny Ng | last post by:
Hi,All, Export Method: ------------------------------------------------------------------------- strFileNameExport = "Results" Response.Clear() Response.Buffer = True...
5
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...
9
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...
7
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...
2
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...
3
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.