473,406 Members | 2,352 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,406 software developers and data experts.

Earlier post about excel.. Still not working.. Guru needed!

Ok this is driving me nuts.. I add a com reference to the excel 11.0
library

and throw this in

Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range

From the microsoft example for automating with excel. It somehow refuses to
recognize that I did a reference. This has been happening ever since i had
to reload. I've done excel stuff before, no problems..

It underlines excel.application, excel.workbook, etc etc all as undefined. I
know how to add a com reference, its there.. I have no idea whats going on
:( help!
Nov 20 '05 #1
2 1003
It must be some setting i have somewhere.. because if i do:

imports microsoft.office.interop

it all works..

hmmm
"Brent" <Br***@nunyabuisness.com> wrote in message
news:T2*******************@newssvr29.news.prodigy. com...
Ok this is driving me nuts.. I add a com reference to the excel 11.0
library

and throw this in

Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range

From the microsoft example for automating with excel. It somehow refuses to recognize that I did a reference. This has been happening ever since i had to reload. I've done excel stuff before, no problems..

It underlines excel.application, excel.workbook, etc etc all as undefined. I know how to add a com reference, its there.. I have no idea whats going on :( help!

Nov 20 '05 #2
Brent,

From the sounds of what you are describing, you need to have the Imports
statement at the top of each file to resolve the namespace.

To avoid doing this in every file, go to the Properties of the project and
then go to the Imports Section. You can add a global project import for the
microsoft.office.interop namespace.

Have a look at
http://msdn.microsoft.com/library/de...namespaces.asp
if you are unsure of how namespaces work.

HTH,

Trev.

"Brent" <Br***@nunyabuisness.com> wrote in message
news:yd*******************@newssvr29.news.prodigy. com...
It must be some setting i have somewhere.. because if i do:

imports microsoft.office.interop

it all works..

hmmm
"Brent" <Br***@nunyabuisness.com> wrote in message
news:T2*******************@newssvr29.news.prodigy. com...
Ok this is driving me nuts.. I add a com reference to the excel 11.0
library

and throw this in

Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range

From the microsoft example for automating with excel. It somehow
refuses to
recognize that I did a reference. This has been happening ever since i had
to reload. I've done excel stuff before, no problems..

It underlines excel.application, excel.workbook, etc etc all as

undefined. I
know how to add a com reference, its there.. I have no idea whats going

on
:( help!


Nov 20 '05 #3

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

Similar topics

1
by: Ruth | last post by:
Alison, You are going to find this a real coincidence! To begin with, I am Roberta Laird's husband. I think you know Roberta. We also are friends with Laura McConnell. Anyway, I am in business...
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
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
4
by: Mark | last post by:
VB Code Dim xlApp As Microsoft.Office.Interop.Excel.Application 'Open Excel Application xlApp = CreateObject("Excel.Application") ' ***** Blows up here ***** Error Exception Details...
7
by: rdemyan via AccessMonster.com | last post by:
I want to make sure that I'm closing an opened spreadsheet correctly. I've been having some locking up problems. The following code adds a dummy row to the spreadsheet to ensure that that the data...
1
by: stevenjs | last post by:
Greeings, all, Flash 8 has quiz templates which are coded for multiple choice, true/false, text statement, and matching types of questions, along with hotspots and probably anoher type I am...
9
by: John Kotuby | last post by:
Hi all... While looking around for tools to create Excel files from either HTML pages or the Data I use to assemble them, I got an interesting response from a vendor. I have looked at Apose, and...
3
by: akristensen | last post by:
I am new to this site, so be patient if I do not ask the question correctly. Current Target Platform: Browser: MS IE, script language: Javascript (will use VBScript, but JS is preferred), External...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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
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...
0
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.