473,507 Members | 8,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

New to Excell in VB.. getting errors

Public oexcel As Excel.Application
Public obook As Excel.Workbook
Public osheet As Excel.Worksheet

The Excel.???? variables get not defined errors. Is there something I need
to install on my VS 2005?

Thanks,
Steve

May 20 '07 #1
5 1118
Have you added referecnes tot he Excel PIA libraries?

"Stephen Plotnick" <th****@attglobal.netwrote in message
news:D8******************************@giganews.com ...
Public oexcel As Excel.Application
Public obook As Excel.Workbook
Public osheet As Excel.Worksheet

The Excel.???? variables get not defined errors. Is there something I need
to install on my VS 2005?

Thanks,
Steve

May 20 '07 #2
Apparently not; how do I do that?

Steve
"Ray Cassick" <rc******@enterprocity.comwrote in message
news:uy*************@TK2MSFTNGP05.phx.gbl...
Have you added referecnes tot he Excel PIA libraries?

"Stephen Plotnick" <th****@attglobal.netwrote in message
news:D8******************************@giganews.com ...
> Public oexcel As Excel.Application
Public obook As Excel.Workbook
Public osheet As Excel.Worksheet

The Excel.???? variables get not defined errors. Is there something I
need to install on my VS 2005?

Thanks,
Steve

May 20 '07 #3
It look like I need the following:

Microsoft.Office.Interop.Excel.dll

It is not on my computer.

I own:

VS 2005 Pro
Office 2007 Pro

Should it be there???

Steve

"Stephen Plotnick" <th****@attglobal.netwrote in message
news:Us******************************@giganews.com ...
Apparently not; how do I do that?

Steve
"Ray Cassick" <rc******@enterprocity.comwrote in message
news:uy*************@TK2MSFTNGP05.phx.gbl...
>Have you added referecnes tot he Excel PIA libraries?

"Stephen Plotnick" <th****@attglobal.netwrote in message
news:D8******************************@giganews.co m...
>> Public oexcel As Excel.Application
Public obook As Excel.Workbook
Public osheet As Excel.Worksheet

The Excel.???? variables get not defined errors. Is there something I
need to install on my VS 2005?

Thanks,
Steve

May 20 '07 #4

http://carlosag.net/Tools/ExcelXmlWriter/Default.aspx
This library allows you to generate Excel Workbooks using
XML, it is built 100% in C# and does not requires Excel installed at all
to generate the files. It exposes a simple object model to generate the XML
Workbooks.<br>
It supports several features for generating Excel Workbooks
including:
<ul>
<li>Formatting</li>
<li>Alignment</li>
<li>Formulas</li>
<li>Pivot Tables</li>
<li>and more...</li>
</ul>
<br>
<b>Note:</bThis library is <b>free</b>, you can distribute
it and use it at your own will and risk, it is not supported by any company
including Microsoft or any other company, it does not belong to any company.
<br>


It look like I need the following:

Microsoft.Office.Interop.Excel.dll

It is not on my computer.

I own:

VS 2005 Pro
Office 2007 Pro
Should it be there???

Steve

"Stephen Plotnick" <th****@attglobal.netwrote in message
news:Us******************************@giganews.com ...
>Apparently not; how do I do that?

Steve
"Ray Cassick" <rc******@enterprocity.comwrote in message
news:uy*************@TK2MSFTNGP05.phx.gbl...
>>Have you added referecnes tot he Excel PIA libraries?

"Stephen Plotnick" <th****@attglobal.netwrote in message
news:D8******************************@giganews.c om...

Public oexcel As Excel.Application
Public obook As Excel.Workbook
Public osheet As Excel.Worksheet
The Excel.???? variables get not defined errors. Is there something
I need to install on my VS 2005?

Thanks,
Steve

May 20 '07 #5
My original post was from some code I found so I could learn.

When I actually use the code and project file the error went away. What I
saw as an assembly.vb file in the one I was trying to learn from. I'm sure
this is a simple thing for experienced pogrammers but I would like to know
how to create a project from scratch and create this assembly.vb.

I did try and do an add resource for the interop.excel; that did not work.

Thanks for all the help.
Steve
"Stephen Plotnick" <th****@attglobal.netwrote in message
news:Ic******************************@giganews.com ...
It look like I need the following:

Microsoft.Office.Interop.Excel.dll

It is not on my computer.

I own:

VS 2005 Pro
Office 2007 Pro

Should it be there???

Steve

"Stephen Plotnick" <th****@attglobal.netwrote in message
news:Us******************************@giganews.com ...
>Apparently not; how do I do that?

Steve
"Ray Cassick" <rc******@enterprocity.comwrote in message
news:uy*************@TK2MSFTNGP05.phx.gbl...
>>Have you added referecnes tot he Excel PIA libraries?

"Stephen Plotnick" <th****@attglobal.netwrote in message
news:D8******************************@giganews.c om...
Public oexcel As Excel.Application
Public obook As Excel.Workbook
Public osheet As Excel.Worksheet

The Excel.???? variables get not defined errors. Is there something I
need to install on my VS 2005?

Thanks,
Steve

May 20 '07 #6

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

Similar topics

3
1706
by: Savas Ates | last post by:
i cant delete data from excell which i use as a database with asp .. i encounter an error report about isam. how can i delete data from excell help meee!
9
1909
by: Hi5 | last post by:
Hi, I have designed a databasewhich is now able to store all data from my client's Excel sheet.Now I am looking for a good way to move their data into this Db. If I want to do this myself will...
2
1364
by: Robert Halstead | last post by:
Hi guys, I have a asp.net web app and it's connecting to an excell 2003 document (in another folder) via OleDataAdapter. Everything works and all, it's just that when I shutdown IE and try to...
0
1097
by: Delforce | last post by:
Hi all, My application allows you to create a new excel file and then double click it in the list view to start it in excell. If the excell file is an existing one then I can start it now...
2
2665
by: glibo | last post by:
I am trying to change the tab name when i open a excell spread sheet on the run time in c#. I changed it in the code: Response.AddHeader("content-disposition","filename=" + sFileName + ".xls");...
1
2270
by: thripurari | last post by:
Hi ! Dear all! I am getting a problem while binding the data source to the ultragrid . pls can any one could help me to bind the excell file to my ultra grid. My Question is: How to bind the...
2
1347
by: Bram2008 | last post by:
How to use macro in excel? Can i get some code to record excell data to vb? O y, i have project in vb, and i write data in vb, then i transfer it to excell to build chart. This is my code : ...
1
1444
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, I m creating a database. The data for database will fetched from an excell sheet. Now how can i read an excell sheet and update my database with that excell sheet. Or I want to show...
3
4560
by: ashokd001 | last post by:
Hi, How do i read time field from excell sheet by python. I am getting "0.400694444444" value but sheet has "9:37:00 AM" . How to convert it ? Regards, Ashok
0
7105
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...
0
7308
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,...
0
7371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7023
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7479
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5617
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,...
0
4702
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...
0
3188
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...
0
410
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...

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.