pywin32

Python-pptx – How to insert a slide number for all slides

Python-pptx – How to insert a slide number for all slides Question: I am trying to automatically insert slide numbers to all my slides in PPT that is messy and strictly formatted. When we do manually,we are not able to do it for all the PPTs due to manual work involved. Is there anyway to …

Total answers: 1

Deploy a python script to monitor mailbox and download attachments automatically

Deploy a python script to monitor mailbox and download attachments automatically Question: Below is the code to download attachments from a sender with a specific subject. I need to deploy it locally on my computer so that this code keeps monitoring outlook and as soon as the email arrives, it should download the attachment. I …

Total answers: 1

VSCode debugger not releasing COM object reference when a Python script throws an exception

VSCode debugger not releasing COM object reference when a Python script throws an exception Question: I’ve observed a strange behavior where VSCode does not release COM object references while debugging. PyCharm works fine. To see this in action do the following: Start Excel (the problem occurs with other apps too, I’m using Excel for this …

Total answers: 1

Create new outlook exchange server email in python with win32com

Create new outlook exchange server email in python with win32com Question: ‘Application.CreateItemFromTemplate’ and ‘Application.CreateItem()’ don’t work. I believe it has something to do with the fact that I’m running Outlook Exchange Office 365 instead of the standard outlook session. I am able to find emails in my mailbox and open them, but I am not …

Total answers: 2

How to pass an empty optional argument from Python to Excel VBA macro

How to pass an empty optional argument from Python to Excel VBA macro Question: I am using Python to test an Excel VBA macro. The macro has two optional parameters. As long as only the last or both parameters should be omitted I am fine. I just pass the preceding parameters. I don’t know how …

Total answers: 2

Xlwings Excel and Windows Task Scheduler issues

Xlwings Excel and Windows Task Scheduler issues Question: I have a python script that runs perfectly when I manually run the python script. It opens a shared excel file, adds data to the bottom of the sheet in real time with other users in the file, auto saves and closes. However, when I schedule this …

Total answers: 2