79541039

Date: 2025-03-28 09:42:58
Score: 2
Natty:
Report link

I know this is an old question but 2000 people have come this way (as did I) and the answer didn't help me. I now figured out why I was getting the type mismatch when tying to Set a declared shape variable to a known Powerpoint shape object..... I had dimensioned a shape variable in my vba code . . . but that vba code was MS Project not Powerpoint, Project code was populating a powerpoint presentation. So

Dim shp as shape

(within the MSP Code) dimensioned a shape from the MSP object library. The required correction was:

Dim shp as Powerpoint.shp (or if not bound, "Dim shp as object" would work).

Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Malcolm.Farrelle