Sub
DatenUpdate()
Dim
PPT_1
As
PowerPoint.Application
Set
PPT_1 = CreateObject(
"Powerpoint.Application"
)
Dim
PPT
As
PowerPoint.Presentation
Set
PPT = PPT_1.ActivePresentation
Dim
i
As
Long
Dim
s
As
Long
For
i = 1
To
PPT.Slides.Count
For
s = 1
To
PPT.Slides(i).Shapes.Count
If
PPT.Slides(i).Shapes(s).Type = msoLinkedOLEObject
Then
PPT.Slides(i).Shapes(s).LinkFormat.AutoUpdate = ppUpdateOptionAutomatic
End
If
Next
s
Next
i
PPT.UpdateLinks
For
i = 1
To
PPT.Slides.Count
For
s = 1
To
PPT.Slides(i).Shapes.Count
If
PPT.Slides(i).Shapes(s).Type = msoLinkedOLEObject
Then
PPT.Slides(i).Shapes(s).LinkFormat.AutoUpdate = ppUpdateOptionManual
End
If
Next
s
Next
i
Set
PPT =
Nothing
Set
PPT_1 =
Nothing
End
Sub