Powerpoint 2007 actionsetting.action error in Add-in

S

stefan

I created the macro below as part of an add-in to be used in PowerPoint 2007.
It works fine until I create an add-in and call the macro from the add-in. It
then generates the following error:
Run-time error '-2147188160 (80048240)':
ActionSetting.Action : Invalid Request

The code works fine till the actionsettings part

Any ideas on how to resolve it?


Public Sub Insert_VLC()
nr =
ActivePresentation.Application.ActiveWindow.Selection.SlideRange.SlideIndex
Set myslide = ActivePresentation.Slides(nr)
Set vlc_shape = myslide.Shapes.AddOLEObject(110, 60, 120, 90,
"Videolan.VLCPlugin.1")
vlc_shape.OLEFormat.Object.MRL = File_Insert()
Set klik = myslide.Shapes.AddShape(1, 0, 0, 5, 5)

With klik
.Fill.Transparency = 1
.Line.Transparency = 1
PowerPoint.Application.Visible = msoTrue
.ActionSettings(ppMouseClick).Action = ppActionRunMacro
.ActionSettings(ppMouseClick).Run = "show_userform2"
End With
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top