Re: How to write in to already opened excel file by using openpyxl

2013-09-27 Thread somesh g
hi..Neil 

yes i dint saved that time and i added the save option and it saved 

Thanks for the response
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to write in to already opened excel file by using openpyxl

2013-09-27 Thread somesh g
Hi..joel

what is said is correct i dint added save to that after adding its working 
perfect

thanks
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to write in to already opened excel file by using openpyxl

2013-09-27 Thread Joel Goldstick
On Fri, Sep 27, 2013 at 9:37 AM, Neil Cerutti  wrote:

> On 2013-09-27, somes...@gmail.com  wrote:
> > Hi..there,
> >
> > I have opened a excel file by using the following code
> > from openpyxl import load_workbook
> >
> >  wb = load_workbook('path of the file')
> > DriverTableSheet = wb.get_sheet_by_name(name = 'name of the sheet')
> > after that i have to append some values in that excel file..
> >
> > for that i used the following code
> >
> > DriverTableSheet.cell(row=1, column=2).value="value"
> >
> > but it is not responsive..can u guys please guide how to write
> > / append a data in that excel file and save that excel 
> > file
>


> https://mail.python.org/mailman/listinfo/python-list
>

You need to read the documentation:
http://openpyxl.readthedocs.org/en/latest/tutorial.html#saving-to-a-file

The code you show doesn't have any save method being called.


-- 
Joel Goldstick
http://joelgoldstick.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to write in to already opened excel file by using openpyxl

2013-09-27 Thread Neil Cerutti
On 2013-09-27, somes...@gmail.com  wrote:
> Hi..there,
>
> I have opened a excel file by using the following code
> from openpyxl import load_workbook
>
>  wb = load_workbook('path of the file')
> DriverTableSheet = wb.get_sheet_by_name(name = 'name of the sheet')
> after that i have to append some values in that excel file..
>
> for that i used the following code
>
> DriverTableSheet.cell(row=1, column=2).value="value"
>
> but it is not responsive..can u guys please guide how to write
> / append a data in that excel file and save that excel file

Show more code, please. And please describe the error more fully.

What did you hope to happen, and what happened instead? What have
you tried so far?

-- 
Neil Cerutti
-- 
https://mail.python.org/mailman/listinfo/python-list


How to write in to already opened excel file by using openpyxl

2013-09-27 Thread someshg2
Hi..there,

I have opened a excel file by using the following code
from openpyxl import load_workbook

 wb = load_workbook('path of the file')
DriverTableSheet = wb.get_sheet_by_name(name = 'name of the sheet')


after that i have to append some values in that excel file..

for that i used the following code

DriverTableSheet.cell(row=1, column=2).value="value"


but it is not responsive..can u guys please guide how to write / append a data 
in that excel file and save that excel file

-- 
https://mail.python.org/mailman/listinfo/python-list