When I try to open an excel file by calling EXCEL itself from python, I cant see any Excel file opened . How can I fix that?

Thanks in advance.

The code I use is:

import os
from win32com.client import Dispatch
xl = Dispatch('Excel.Application')
wb = xl.Workbooks.Open(os.path.abspath("Modules.xls"))

This opens the xls file in default program cross platform way:

import webbrowser
webbrowser.open('Modules.xls')
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.