0

I have an two excel files 'file1' and 'file2'. file1 has data filled in 3 sheets. I want to copy data from file2 and append it into sheet3 in file1 and save the same file. Can anyone help me do this using python?

Nicola Musatti
  • 17,834
  • 2
  • 46
  • 55
Umamaheshwar
  • 97
  • 3
  • 9

2 Answers2

2

xlwt is used to write into existing files.

Here is the similar thread to your question. . .

writing to existing workbook using xlwt

Community
  • 1
  • 1
SaravanaKumar
  • 739
  • 1
  • 7
  • 17
0

If you are using Windows, you can try PyWin32 to directly run Excel.

from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")
...

Some recipes here.

NOTE: You will need to install PyWin32 binary.

Cyrille
  • 13,905
  • 2
  • 22
  • 41