Excel VBA to paste jpeg picture in Chart -
i using excel 2013. code had tried , not working. suggestions on how write vba either use jpeg file fill chart, or picture have shape in sheet called "picture 6" thank you!!!
sub pastepic() activesheet.chartobjects("mainchart").activate activechart.chartarea.format.fill.userpicture("s:\cat\everyone\analyse\kundeplattform\square.jpeg") end sub
your code looks fine , works me.
it looks you're retrieving picture network. try moving picture c:
drive on local machine (i.e. c:\square.jpeg
) , try macro again, may network issue.
Comments
Post a Comment