Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
78syh opened this issue Aug 22, 2024 · 1 comment
Open

Comments

@78syh
Copy link

78syh commented Aug 22, 2024

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

@Avasam
Copy link
Collaborator

Avasam commented Aug 22, 2024

@78syh Can you please provide a minimal reproducer and the complete error in textual form? (not a screenshot)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants