View Single Post
 
Old 05-07-2012, 07:47 AM
JohnWilson JohnWilson is offline Windows 7 64bit Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Quote:
Originally Posted by CatMan View Post
Running in Excel, I should have mentioned that.
Yep, that's the problem.

Unless you have set a reference to powerPoint Excel has no idea what a Presentation or a Slide are and will be confused by "Shape"

In the second sub routine change these to object

Sub addpic(opres As Object, osld As Object, strPath As String)
Dim opic As Object
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote