Python Forum
Open excel file using Python
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open excel file using Python
#2
Quote:Even though I do not receive any error message I am not able to open again the file with this line once has been closed.
How do you know the file's not open?
Even though you're not getting an error, there must be some sort of indication.
also, when you do object.quit, does that actually close the file, or just quit the win32com process, leaving the file open.
do you need to do another object.quit after line 25?

finally, which packages are you using (your imports)
Reply


Messages In This Thread
Open excel file using Python - by cioer23 - Jul-25-2017, 09:55 AM
RE: Open excel file using Python - by Larz60+ - Jul-25-2017, 10:38 AM
RE: Open excel file using Python - by cioer23 - Jul-25-2017, 10:47 AM
RE: Open excel file using Python - by Larz60+ - Jul-25-2017, 05:45 PM
RE: Open excel file using Python - by cioer23 - Jul-26-2017, 09:18 AM
RE: Open excel file using Python - by snippsat - Jul-26-2017, 09:59 AM
RE: Open excel file using Python - by Larz60+ - Jul-26-2017, 10:47 AM
RE: Open excel file using Python - by cioer23 - Jul-26-2017, 10:54 AM
RE: Open excel file using Python - by Larz60+ - Jul-26-2017, 10:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Data Sorting and filtering(From an Excel File) PY_ALM 0 1,094 Jan-09-2023, 08:14 PM
Last Post: PY_ALM
  Python - Merge existing cells of Excel file created with xlsxwriter manonB 0 3,788 Mar-10-2021, 02:17 PM
Last Post: manonB
  Creating more than one excel File at once malvarez1976 0 1,856 Dec-15-2020, 02:04 AM
Last Post: malvarez1976
  Convert Excel to .txt - Need each excel row to be separate .txt file cowboykevin05 2 4,857 Jan-03-2020, 06:29 PM
Last Post: Larz60+
  [split] Converting excel file to txt file unexceptionalhobby 2 4,419 Oct-16-2019, 06:34 PM
Last Post: unexceptionalhobby
  Python write result of VAR to excel file wissam1974 8 8,835 Jul-13-2019, 01:09 PM
Last Post: wissam1974
  How to add a dataframe to an existing excel file wendysling 2 28,274 May-09-2019, 07:00 PM
Last Post: wendysling
  Import Excel File that Starts with Number kiki1113 1 3,365 Dec-20-2018, 07:13 PM
Last Post: Larz60+
  CSV file dont open with code ayaz786amd 2 2,658 Nov-21-2018, 09:13 AM
Last Post: ayaz786amd
  Copy raw data in excel to another new excel file keerthiprashanth 5 3,972 Oct-20-2018, 10:13 AM
Last Post: volcano63

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020