How to “Refresh Data” via VBA in Power Point?

前端 未结 3 541
甜味超标
甜味超标 2020-12-17 07:15

so far I have tried the Chart.Refresh and Chart.Update and also ChartData.UpdateLinks and neither work. My question is sim

3条回答
  •  半阙折子戏
    2020-12-17 07:44

    This may help, It opens and closes the embedded Excel object

    For Each s In ActivePresentation.Slides(i)
        If s.Type = msoEmbeddedOLEObject Then
          s.Select                               'select the object
            s.OLEFormat.Activate                 'Activate it (like 2x click))
            ActiveWindow.Selection.Unselect      'To let it close
            ActiveWindow.View.GotoSlide s.Slideindex  'make current slide active
         End If
    Next s
    

提交回复
热议问题