VBA has an issue with the code I supply for adding a picture to a powerpoint.
The code actually works and inserts a picture. However, it does give me a 'Runtime error 13, Type mismatch". I can suppress the error with On error resume next, but I actually want to know why it returns an error.
Also, I have no idea how the MsoTriStrate works, I just tried the MsoCTtrue and it worked. If someone could explain the meaning of MsoTriState that would be very helpful.
Thanks
Code:
Dim pic As Shape
Set pic = activeSlide.Shapes.AddPicture("C:\img\fclogo.jpg", msoCTrue, msoFalse, 100, 100)
The code actually works and inserts a picture. However, it does give me a 'Runtime error 13, Type mismatch". I can suppress the error with On error resume next, but I actually want to know why it returns an error.
Also, I have no idea how the MsoTriStrate works, I just tried the MsoCTtrue and it worked. If someone could explain the meaning of MsoTriState that would be very helpful.
Thanks