I've started getting an error in an update of a program I have been using for a while, I'm trying to get data from a cell in a chart, but I am getting an error

"Automation error
Object is not connected to server (-2147220995)"

The line where this is happening is in a function which retrieves a specific piece of data from the presentation. The relevant portion is below:
[vba]
Dim oChartObject As Object
Dim shapeType As Integer

With oShape
shapeType = .Type
If shapeType = 7 Then ' Chart
Set oChartObject = .OLEFormat.Object
[/vba]
The error occurs on the last line where i am setting oChartObject to the OLEFormat.Object for the chart.

The program successfully pulls the data from 2 other cells in the same chart, but throws an error when it gets to this cell. Previous versions seem to work properly, and the same code will pull data from an older version of the PPT file with data.

Does anyone know what could be causing this error, and what I can do to remedy this?