473,832 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pyExcelerator - Can I read and modify an existing Excel-WorkBook?


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 support the reading for
modification of an Excel-sheet. It allows only the "parse_xls" but I would
like to keep the "formatting " in the template.

Did I miss a "load", "read" or "open" function in pyExcelerator that would
hand me back a WorkBook?

Greetings,
Marco
Jul 11 '06 #1
4 5859
Marco Aschwanden wrote:
>
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 support the reading for
modification of an Excel-sheet. It allows only the "parse_xls" but I
would like to keep the "formatting " in the template.

Did I miss a "load", "read" or "open" function in pyExcelerator that
would hand me back a WorkBook?

Greetings,
Marco

If you are on Windows, you may find using COM interface to
actual Excel application easier.

-Larry Bates
Jul 11 '06 #2
I'm pretty sure it doesn't support reading an existing document. That
would be useful.

On 7/11/06, Larry Bates <la*********@we bsafe.comwrote:
Marco Aschwanden wrote:

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 support the reading for
modification of an Excel-sheet. It allows only the "parse_xls" but I
would like to keep the "formatting " in the template.

Did I miss a "load", "read" or "open" function in pyExcelerator that
would hand me back a WorkBook?

Greetings,
Marco
If you are on Windows, you may find using COM interface to
actual Excel application easier.

-Larry Bates
--
http://mail.python.org/mailman/listinfo/python-list

--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)
Jul 11 '06 #3
No, by it I meant pyExcelerator :-)

On 7/11/06, Larry Bates <la*********@we bsafe.comwrote:
If by "it" you mean Excel's COM interface, it most certainly will.
With COM you call all the same functions/methods that Microsoft
calls to open, save, and manipulate the spreadsheet.

Here are a few links that might help:

http://mathieu.fenniak.net/plotting-...ugh-pythoncom/
http://www.markcarter.me.uk/computing/python/excel.html
http://mathieu.fenniak.net/plotting-...ugh-pythoncom/

Hope info helps.

-Larry

Gregory Piñero wrote:
I'm pretty sure it doesn't support reading an existing document. That
would be useful.

On 7/11/06, Larry Bates <la*********@we bsafe.comwrote:
Marco Aschwanden wrote:

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 support the reading for
modification of an Excel-sheet. It allows only the "parse_xls" but I
would like to keep the "formatting " in the template.

Did I miss a "load", "read" or "open" function in pyExcelerator that
would hand me back a WorkBook?

Greetings,
Marco
If you are on Windows, you may find using COM interface to
actual Excel application easier.

-Larry Bates
--
http://mail.python.org/mailman/listinfo/python-list


--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)
Jul 11 '06 #4
Hello,
I agree that it would be nice to use one package to read and modify an
Excel Sheet. I have only had to do either one or the other, read a
sheet and use the data for something else, or export data to an
Excel-Sheet. Perhaps you might like to look at xlrd:

http://www.lexicon.net/sjmachin/xlrd.htm

It works fines as far as reading Excel is concerned.

Greetings,

Richard Sharp

Gregory Piñero wrote:
No, by it I meant pyExcelerator :-)

On 7/11/06, Larry Bates <la*********@we bsafe.comwrote:
If by "it" you mean Excel's COM interface, it most certainly will.
With COM you call all the same functions/methods that Microsoft
calls to open, save, and manipulate the spreadsheet.

Here are a few links that might help:

http://mathieu.fenniak.net/plotting-...ugh-pythoncom/
http://www.markcarter.me.uk/computing/python/excel.html
http://mathieu.fenniak.net/plotting-...ugh-pythoncom/

Hope info helps.

-Larry

Gregory Piñero wrote:
I'm pretty sure it doesn't support reading an existing document. That
would be useful.
>
On 7/11/06, Larry Bates <la*********@we bsafe.comwrote:
>Marco Aschwanden wrote:
>
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 support the reading for
modification of an Excel-sheet. It allows only the "parse_xls" butI
would like to keep the "formatting " in the template.
>
Did I miss a "load", "read" or "open" function in pyExcelerator that
would hand me back a WorkBook?
>
Greetings,
Marco
>
>
>If you are on Windows, you may find using COM interface to
>actual Excel application easier.
>>
>-Larry Bates
>--
>http://mail.python.org/mailman/listinfo/python-list
>>
>
>


--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)
Jul 13 '06 #5

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

Similar topics

3
3038
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 Excel.Application Dim oWB As Excel.Workbook Dim oSheet As Excel.Worksheet oXL = GetObject(, "Excel.Application") oWB = oXL.ActiveWorkbook oSheet = oWB.ActiveSheet
5
7592
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 have seen methods for transfering cell by cell, and understand how to get that to work. However, my recordset has 3600 cells of data. Cell by cell is just not an option. I am looking for a way to specify the starting cell (most upper left cell) in...
1
1407
by: abhiab54 | last post by:
Hi, I want to open already existing excel sheet search for perticular string & write specific value below the cell containing that string. Please help I have limited knowledge of Vb, Perticularly in file handling
1
1280
by: veer | last post by:
hello expert i have a programe in which i want to modify or add new records in excel sheet but it opened read only and when ever i want to insert the record it give the message that give new name to save the changes is there any idea to modify the excel sheet my code is Set x1 = CreateObject("Excel.Application") x1.Workbooks.Open ("c:\var\var2.xls") x1.Visible = True x1.Worksheets(1).Cells(10, 5) = "hello" 'x1.ActiveWorkbook.Save
5
15963
by: tsanthoshk | last post by:
Hi All I am trying to read and modify input excel file. when i update the data in excel sheet already existing format is washing out. It mean if excel sheet contain colors those are not appearing once i update. Can any one suggest links or scripts for this problem. Requirement: input excel sheet will be given. Read the data and modify with new the data. And the condition is excel sheet contain colors which should not be distrub. ...
4
2998
by: student491 | last post by:
Hello, i tried to open existNg Excel file by using follow metho bt it give error ... that this file doestnt exist or path is incorrect........ wb = ThisApplication.Workbooks.Open(paramWorkbookPath, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,...
3
3783
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. But I dont know how to open an existing excel file. can anyone give me some hint or help?
2
9897
by: amuven | last post by:
Hi All, I'm new to python I have written very basic and small code and I request to help for the following senario.For my project i want to write a python code which should open an already existing Excel sheet which can contain 2 or 3 datasheets and write data in sheet1(first sheet) alone and should not modify the data in rest of the datasheets and save it. I have heard that people saying it can be done through pyExcelerator or xlrd or...
2
1325
by: glenn.ward | last post by:
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
3
23841
by: premMS143 | last post by:
How to append Data to an existing Excel file? means, I'm using VB as front end & once I exported the data to Excel file & saved it as 'ABC.xls'. Now, the question/doubt is; I addded some more records in VB. Now if I want to export these newly updated records to an already existing file 'ABC.xls' what shall I do..? Could anybody help me...? Pls....
0
9794
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9319
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7753
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5788
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4420
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3968
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3077
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.