At the moment, I'm just trying to follow the instructions here but I've had this issue before. For some reason, I'm unable to assign PowerPoint charts to a declared Chart variable. Using .HasChart, I've confirmed that there is definitely a chart there, and using Shapes(i).Type, I've confirmed that the Shape is of a Chart Type, but I get Run-time error '13': Type mismatch every time. I've tried this in multiple files and multiple chart types, but to no avail - I must be missing something obvious and silly, but I can't figure it out.
For example:
Dim plot As Chart
For Each shp In PPT.Slides(5).Shapes
If shp.HasChart Then
MsgBox (shp.Type)
Set plot = shp.Chart
End If
Next shp
Any thoughts?