473,386 Members | 1,785 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,386 software developers and data experts.

Help with excel

within my VB.net app I use Excel a lot, so far I have used

Dim excel_app As Object
excel_app = CreateObject("Excel.Application")
excel_app.Workbooks.Add()

and parsed through the spreadsheet adding the data I need to add. Now I
need to be able to open a excel spreadsheet that already exsists
I thought that the excel object would contain a open instance but it does
not and now im stuck

I need to be able to open an excel file and insert the neccesary data into
the correct cells as i would normally (the spreadsheet has so much
formatting on it, that it would take me too long to code)

Thanks

Mike Fellows
Nov 20 '05 #1
2 1237
Hi Mike,

This works for me.
oExcel.Workbooks.Open ("C:\Tmp\Foo.xls")

Regards,
Fergus
Nov 20 '05 #2
Thanks Fergus,

I did eventually suss this out but thanks for the reply

Mike
"Fergus Cooney" <fi******@tesco.net> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
Hi Mike,

This works for me.
oExcel.Workbooks.Open ("C:\Tmp\Foo.xls")

Regards,
Fergus

Nov 20 '05 #3

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

Similar topics

8
by: mytfein | last post by:
Hi Everyone, Background: Another department intends to ftp a .txt file from the mainframe, for me to process. The objective is to write a vb script that would be scheduled to run daily to...
6
by: Matthew Wieder | last post by:
I have the following requirements: Build a stand-alone C# application that asks the user to click in a cell in an Excel spreadsheet, and then displays the address of that cell in the C#...
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...
0
by: Greg | last post by:
Hi, Any ideas of the syntax required to perform an Excel sort from VB.Net? Are there any Imports statements required, etc.? Also, if I want the data in Column B centered, I use:
0
by: Muhammad Zeeshan Iqbal | last post by:
Hello, Language= Java; Platform= Linux; Application= Web I have help excel file. I download it using FileInputStream. When it is downloaded from solaris or widows platform it is correct....
1
by: elbatz | last post by:
Hello.Does anyone here know how to convert or export data from excel to access database having an existing table using visual basic 6 codes? And if that data in excel already exist in access...
0
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About. The application...
2
by: andre0170 | last post by:
Hi... well I'm stuck. I'm hoping that someone can help me identify where I'm going wrong with the macro code I'm using...I'm working on a spreadsheet that tracks purchases. When the word "Data" is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...
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
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
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,...

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.