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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Challenge ! Pasting objects from Clipboard

Status
Not open for further replies.

FaneDuru

Technical User
Jul 15, 2002
141
RO
How is it possible to copy and paste an embedded object from an Excel worksheet (a picture).

With the code: "Sheets(1).Shapes("Pict").Copy" the embedded object is loaded in the Clipboard Memory.
If I wont to Paste it manually I can.

There has to be some API able to do that. It is not so easy......

I have a solution for transporting a picture in an Excel file but I'd like to know how it's possible. I load the picture (any object) in binary mode on the Excel file (passing it through an array) and restore it with:
"Open x For Binary As #1
For i....
Put #1, i, Matr(i)
Next i
Close #1"

Thanks,
Fane Duru'
 
Sorry, I was not very clear.....
I wont to Paste the object somewere in a FOLDER !
I wont to rebuild it......

Anyhow, I did not understand what you mean with "Can you NOT use Activesheet.Paste?"

Fane Duru'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top