J
JKorth
Hello!
My PowerPoint VBA addin (written and tested in PowerPoint 2000-2003)
stopped working beginning with version 2007:
Whenever it calls one of the following commands
CurrentPresentation.SlideMaster.Background.Pickup
CurrentPresentation.TitleMaster.Background.Pickup
CurrentPresentation.Slides(I).Master.Background.Pickup
CurrentPresentation.Slides(I).Background.Pickup
Slide.Background.Visible
it shows the following runtime error:
Laufzeitfehler '-2147188160 (80048240)':
ShapeRange (unknown member) : Invalid request. This operation can't be
applied to a background shape.
When I go into the Debugger and add the Background object to the watch
list, it shows the error text
"<ShapeRange.* Invalid request. This operation can't be applied to a
background shape.>"
for most properties of the Background object (all except .Application
..AutoShapeType .BlackWhiteMode .Count .Creator .Fill .Shadow .Type .Item
1; and except .Parent and .MediaFormat which say "Anwendungs- oder
objektdefinierter Fehler" (=application or object defined error))
Any ideas how to get .Background working in newer PowerPoint versions?
Or are there any newer APIs for the same functionality?
Might it help to convert the VBA macros to a VB6 COM addin? (I guess:
probably not)
My PowerPoint VBA addin (written and tested in PowerPoint 2000-2003)
stopped working beginning with version 2007:
Whenever it calls one of the following commands
CurrentPresentation.SlideMaster.Background.Pickup
CurrentPresentation.TitleMaster.Background.Pickup
CurrentPresentation.Slides(I).Master.Background.Pickup
CurrentPresentation.Slides(I).Background.Pickup
Slide.Background.Visible
it shows the following runtime error:
Laufzeitfehler '-2147188160 (80048240)':
ShapeRange (unknown member) : Invalid request. This operation can't be
applied to a background shape.
When I go into the Debugger and add the Background object to the watch
list, it shows the error text
"<ShapeRange.* Invalid request. This operation can't be applied to a
background shape.>"
for most properties of the Background object (all except .Application
..AutoShapeType .BlackWhiteMode .Count .Creator .Fill .Shadow .Type .Item
1; and except .Parent and .MediaFormat which say "Anwendungs- oder
objektdefinierter Fehler" (=application or object defined error))
Any ideas how to get .Background working in newer PowerPoint versions?
Or are there any newer APIs for the same functionality?
Might it help to convert the VBA macros to a VB6 COM addin? (I guess:
probably not)