'Update Links of Powerpoint using win32com (Python)
I have a PowerPoint slide which has a linked image (table) and the data for that image is in excel.
I am trying to open the PowerPoint but even after PPTApp.DisplayAlerts = False my script gets stuck due to Security pop up which asks me to update the external links.
Here is my code:
import win32com.client
PPTApp = win32com.client.Dispatch("PowerPoint.Application")
if PPTApp.Visible == False:
PPTApp.Visible = True
PPTApp.DisplayAlerts = False
#PPTApp.AskToUpdateLinks = False (this does not work)
PPTPresentation = PPTApp.Presentations.Open(r"C:\Daily_Data_Slide.pptx")
PPTPresentation.UpdateLinks = True
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
