Externally linked Excel data & Power point

Kemidan2014

Board Regular
Joined
Apr 4, 2022
Messages
229
Office Version
  1. 365
Platform
  1. Windows
So i was conflicted whether i should post this question here but since there is not a "MrPowerpoint.com" and its related to excel Im giving it a shot.

I am aware Power points can be macro enabled. and from what I learned so far from Google research is Power point will not automatically update embedded externally linked excel objects but there is VBA code to do so.

I am hoping someone has experiance with trying to dynamically update linked excel objects and triggering the update links function during active slide show when it returns to slide 1.
ive dabbled in it so far but my results usually end up in resetting to original data even though the source has changed.

What the department wants to achieve is to have a monitor that is running a power point presentation on loop to display data and as we update source sheets hourly or bi-hourly so when management or other members on the floor see the data it will be relevent information with out dedicating a body to keep updating it.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
To answer my own question after much attempts the follow code works with 1 issue. To update with out Update prompt asking the linked workbook needs to be open,
but incase anyone else needs it!

VBA Code:
Sub OnSlideShowPageChange(ByVal SSW As SlideShowWindow)
    If SSW.View.CurrentShowPosition = _
        SSW.Presentation.SlideShowSettings.StartingSlide Then

        Updatelinks
    End If
End Sub


Sub Updatelinks()
    
    Dim osld As Slide
    Dim oshp As Shape
For Each osld In ActivePresentation.Slides
       For Each oshp In osld.Shapes
            If oshp.Type = msoLinkedOLEObject Then
                oshp.LinkFormat.Update
            End If
        Next oshp
      Next osld


 
  End Sub
 
Upvote 0
Solution

Forum statistics

Threads
1,223,975
Messages
6,175,746
Members
452,667
Latest member
vanessavalentino83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top