E
Edward
Hi everybody,
I'm using the following code to copy contents of slide (2) of a PPT and
paste it into my active PPT
Set oPres =
Application.Presentations.Open("C:\myDocuments\test.ppt",ReadOnly:=msoTrue,
Untitled:=msoFalse, WithWindow:=msoFalse)
oPres.Slides(2).copy
oPres.Close
ActiveWindow.View.PasteSpecial Datatype:=ppPasteMetafilePicture
sometimes the last line PPPaste fails with an error message but when I
restart my computer I works. Aslo the same code works when I paste the
content of the same slide into Word. I'm not sure why thsi happens? maybe
because of clipboard issue? I don't want to remove the ppPasteMetafilePicture
because when I uses it pictures come with corrcet size.
Any suggestions?
Thanks
I'm using the following code to copy contents of slide (2) of a PPT and
paste it into my active PPT
Set oPres =
Application.Presentations.Open("C:\myDocuments\test.ppt",ReadOnly:=msoTrue,
Untitled:=msoFalse, WithWindow:=msoFalse)
oPres.Slides(2).copy
oPres.Close
ActiveWindow.View.PasteSpecial Datatype:=ppPasteMetafilePicture
sometimes the last line PPPaste fails with an error message but when I
restart my computer I works. Aslo the same code works when I paste the
content of the same slide into Word. I'm not sure why thsi happens? maybe
because of clipboard issue? I don't want to remove the ppPasteMetafilePicture
because when I uses it pictures come with corrcet size.
Any suggestions?
Thanks