Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paste picture from clipboard into aslide of an opened powerpoint file

Status
Not open for further replies.

Katto

Technical User
Apr 6, 2005
42
US
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

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top