I do see PasteSpecial in 2002, but it doesn't work there.
I had a chance to fire up 2002 and it does seem to work:
Dim oSl as Slide
Set oSl = oPres.Slides.Add(oPres.Slides.Count + 1, ppLayoutBlank)
call oSl.Shapes.PasteSpecial(DataType:=ppPastePNG, Link:=msoFalse)
This works, assuming there's something on the clipboard in the first place.
If there's not, or if the requested data type isn't on the clipboard, you'll get an
error.
To test this, first copy your content to the clipboard manually, then use Edit, Paste
Special and look at the list of available paste options; if what you want isn't there,
it won't be available to VBA either.
Slides.Add(oPres.Slides.Count + 1,
ppLayoutBlank).Shapes.PasteSpecial Link:=msoTrue
I tried this in 2002, and the PasteSpecial Link:=msoTrue didn't give any
compile error and gives a execution erorr.
Can I just that its not really available in PPT 2002 either???
Thanks,
Gary
:
How do I know if I have the PasteSpeical ability.
I have check on a PPt 2000 and 2002 and when I start typing in the VBA
code, I can see the PasteSpecial on both, but the options after comes close
to Link is LinkFormat. I assume I don't have the ability (right)????
I'm not sure where you see PasteSpecial ... it's not here in 2000.
In a module, start:
ActivePresentation.Slides(1).Shapes.
At that point, you'll se PasteSpecial as one of the options in 2003; it's
definitely not available in 2000. I don't have 2002 handy to check right now.
Over to you on that ... ;-)
I assume in 2003, you will see Link as a option after PasteSpecial???
Gary
: