paste as "device independent bitmap"

  • Thread starter Thread starter ikeriba
  • Start date Start date
I

ikeriba

Which is the vba code to do this?
I have an object copied into the clipboard and I want to
paste it as a "device independent bitmap".
Thanks.
 
Which is the vba code to do this?
I have an object copied into the clipboard and I want to
paste it as a "device independent bitmap".

What version of PowerPoint does this need to work in?
If PPT2002 and later, you can do:

ActivePresentation.Slides(x).Shapes.PasteSpecial (parameter)

to force the pasted image onto slide x in the format dictated by "parameter"

If the format isn't on the clipboard, an error occurs.



--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
If the format isn't on the clipboard, an error occurs.
So it would be handy to check what's on the clipboard first?

TAJ
 
So it would be handy to check what's on the clipboard first?

Or trap the error.

On Error GoTo ErrorHandler

' Try pasting a bitmap here

NormalExit:
Exit Sub
ErrorHandler:
MsgBox ("Sorry, no bitmaps on the clipboard today. _Try again tomorrow.")


--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Back
Top