Click here to Skip to main content
16,017,297 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have 2 excel workbooks.

I want to place empty image controls on sheets in Book A and set the picture property of them at run time by importing or getting the image information somehow from the images either embedded or stored in some fashion in book B which would be sent out with book A.

As far as i can determine, I can only do this with loadPicture(path) which is no good for this as there isn't a path to the image. I want to get around the need to reference remote directories which not everyone will have acess to.

Any ideas if or how I can do this?

Thanks
Posted

1 solution

Use cut and paste using the clipboard. It is something like Set Picture1.picture = clipboard.getdata(ImageObj1) from workbook A whiich places the picture into the clipboard, then paste it into workbook B.

Do a search for Clipboard in the VBA help from the VBA editor for the method.
 
Share this answer
 
Comments
GedSmith 18-May-11 2:23am    
Thanks, I will give this a go and report back

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900