I have a PowerPoint presentation which has Excel tables as objects.
The Excel files are updated once a week. Once Excel files are updated, I open PowerPoint, double-click on each object -> menu Data -> Edit Links -> select all sources -> Update Values.
Is it possible for a macro to find the Excel objects in PowerPoint and update them?
After searching the web I've managed to get the following code which takes me up to the step of double clicking the object, but I don't know how to update links.
Sub update_objects()
Dim it As String
Dim i As Integer
For i = 1 To ActiveWindow.Selection.SlideRange.Shapes.Count
With ActiveWindow.Selection.SlideRange.Shapes(i)
If .Type = msoEmbeddedOLEObject Then
ActiveWindow.Selection.SlideRange.Shapes(i).Select.OLEFormat.DoVerb
End If
End With
Next i
End Sub