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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -