ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   .ChartArea.Fill.UserPicture PictureFile:="how to reference an obj. (https://www.excelbanter.com/excel-programming/316847-chartarea-fill-userpicture-picturefile-%3D-how-reference-obj.html)

Carlos from LA

.ChartArea.Fill.UserPicture PictureFile:="how to reference an obj.
 
How do you reference an object from the clipboard to use as a background
picture for the Excel Chart Area instead of an actual file. I'm trying to
avoid an actual file and so I've placed the picture in the file with my Excel
macro. Copy & paste does not work. Thanks.

Stephen Bullen[_4_]

.ChartArea.Fill.UserPicture PictureFile:="how to reference an obj.
 
Hi Carlos,

How do you reference an object from the clipboard to use as a background
picture for the Excel Chart Area instead of an actual file. I'm trying to
avoid an actual file and so I've placed the picture in the file with my Excel
macro. Copy & paste does not work. Thanks.


I don't see a property that we can use to set the picture directly (i.e. not
from a file), so I think the best we can do is to use the PastePicture routine
on my web site to save the picture as a file, set the chart to use the file,
then delete the file.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.oaltd.co.uk




All times are GMT +1. The time now is 07:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com