Hi Everyone,
I'm trying to use an ESRI MapControl in a PowerPoint slide via a VBA macro.
When I use the AddShapefile or AddLayerFromFile method to add layers, I get the following error at runtime:
Method 'AddShapeFile' of object 'IMapControlDefault' failed.
The syntax I'm using is:
Me.MapControl1.AddShapeFile "C:\mywork\shapefiles", "cities"
I tried it with a backslash after the path and a ".shp" after "cities" but that didn't help. I also tried my luck with AddLayerFromFile but no dice.
Does anyone have other ideas about how to get it to work?
Thanks