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

edit existing excel

Hello

I have existing Excel files complete with formulas, formatting and
some with macros. I was wondering if VB.Net would allow me to edit an
existing Excel file. I know I can recreate such a file from scratch,
however it would be great to use what is already formatted and has
formulas in place. Far less work. Is this possible to do? If so,
how??

Thanks
Glenn
Sep 5 '08 #1
2 1300
You're going to be looking at the Excel Interop code. Just reference
the COM library Excel 11.0 and you can edit Excel spreadsheets.

That being said, I would stay away from this unless you have some
requirement to do so. The Excel Interop is rough to use and somewhat
fickle in what you can and cannot do. However it does give you a good
deal of power to specifically edit your spreadsheets.

Sep 8 '08 #2
On Sep 8, 2:57*pm, "cfps.Christian" <ge0193...@otc.eduwrote:
You're going to be looking at theExcelInterop code. *Just reference
the COM libraryExcel11.0 and you can editExcelspreadsheets.

That being said, I would stay away from this unless you have some
requirement to do so. *TheExcelInterop is rough to use and somewhat
fickle in what you can and cannot do. *However it does give you a good
deal of power to specifically edit your spreadsheets.
Thanks! I have this in my code, however I will do some further
investigation
on this. I know about building a new Excel file, however editing an
existing
one is new to me.
Sep 9 '08 #3

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

Similar topics

4
by: Josh Behl | last post by:
When I try to programmatically open an existing Excel document using a custom windows form, it works perfectly. I instanciate a new instance of the Excel.ApplicationClass and then set the Visible...
1
by: Joe Cletcher | last post by:
It's got to be simple, but there doesn't seem to be an "open" method for opening an existing Excel spreadsheet in a VB.Net. What do I do after the following? Dim myExcel As...
1
by: gssstuff | last post by:
Hi I have a need to send data from Access to an existing Excel template that I am using for reporting purposes. The nature of the data in the Access data table does not lend itself to a simple...
3
by: Ian Dunn | last post by:
I'm simply trying to access an instance of Excel that has been opened manually by the user in order to put a few values in the existing sheet. Here's the code I've tried: Dim oXL As...
4
by: Marco Aschwanden | last post by:
Hi I would like to 1. import an existing Excel-sheet (a template) 2. and add some data to it 3. and save it under a different name afterwards. To me it seems, that pyExcelerator does not...
5
by: hmiller | last post by:
Hey there folks: I have been trying to get this work for about a week now. I'm new to VBA... I am trying to transfer a populated table in Access to an existing, but blank, Excel worksheet. I...
3
by: thanawala27 | last post by:
Hi, I had problems writing in an existing Excel File. There is an excel file with a worksheet. I would like to open this existing Excel file and add another worksheet and write data into it....
2
by: ram712 | last post by:
i need to create/add a copy of an excel sheet to an existing excel sheet consisting of table data so that the new excel sheet renamed automatically. also, the new excel sheet should be blank but...
4
by: Ashcraft | last post by:
Tried googling and got maybe some older examples of how to solve this problem. But when I tried they didn't seem to work. I'm able to create and write to a new file but not sure how to edit an...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.