S
Steve Rindsberg
Has anyone tried dynamically loading images into image controls in various
versions of PPT?
I'm working on a VBA form that includes one.
In PPT Windows (any version) and Mac PPT 2004, I can load a picture into the
control thus:
Me.Image1.Picture = LoadPicture("Macintosh HD:Blah:Blahicture.bmp")
Problem is that in Mac PPT X the same code won't compile.
Instead I get:
"Function or interface is marked as restricted or the function uses an
automation type not supported in Visual Basic."
At that point, LoadPicture is highlighted, indicating that it's the source of
Compiler Distress. PPT X VBA Help says it should work.
Compiler hasn't read Help, I guess.
Clues, anyone?
================================================
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
versions of PPT?
I'm working on a VBA form that includes one.
In PPT Windows (any version) and Mac PPT 2004, I can load a picture into the
control thus:
Me.Image1.Picture = LoadPicture("Macintosh HD:Blah:Blahicture.bmp")
Problem is that in Mac PPT X the same code won't compile.
Instead I get:
"Function or interface is marked as restricted or the function uses an
automation type not supported in Visual Basic."
At that point, LoadPicture is highlighted, indicating that it's the source of
Compiler Distress. PPT X VBA Help says it should work.
Compiler hasn't read Help, I guess.
Clues, anyone?
================================================
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================