Hello,
I am trying to paste a picture into an open powerpoint slide using VBSCRIPT.
I need to find the latest slide an paste it there
I have this code which fails on the Activewindow.Selection line.
Also the ns line does not work
Help would be appreciated
Thank you
I am trying to paste a picture into an open powerpoint slide using VBSCRIPT.
I need to find the latest slide an paste it there
I have this code which fails on the Activewindow.Selection line.
Also the ns line does not work
Help would be appreciated
Thank you
Code:
Dim oPPS
Dim studio
Dim pict
Set studio = CreateObject("CSTStudio.Application")
Dim MWS
Set MWS = studio.Active3D
MWS.StoreViewInClipboard
Set oPPt = CreateObject("PowerPoint.Application")
'Wscript.Echo FLN
With oPPt
.Visible=True
.WindowState=1
.activate
End With
Dim osld
[COLOR=#CC0000]Set osld = ActiveWindow.Selection.SlideRange(1)[/color]
ns.opps.slides.count
With osld.Shapes.Paste(1)
End with