Skip to content

The bug where the COM object of an open Excel file cannot be retrieved. #2363

@78syh

Description

@78syh

For all bugs, please provide the following information:

Expected behavior and actual behavior

I want to modify the open Excel file, but I cannot retrieve the object.

os.startfile(excel_file)
time.sleep(5)
excel_app = win32com.client.GetActiveObject("Excel.Application")

System information

Python version and distribution: 3.10.11

pywin32 version: 306

Installed from PyPI or exe installer: PyPI

Office Version : Office professional plus 2019

Windows Version: windows 10 20h2

DLL locations: default

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions