vba - Displaying "live" chart data in Excel Userform -


so, have been researching modes of displaying charts in userform. general consensus seems have save chart .gif file , upload within userform image, however, mean using userform have have file saved image in order view information (and not believe of associates take time learn how this, want quick chart-view).

is there workaround display chart (which being updated data comes in) within userform? have tried multiple avenues , not finding anything... also, excel 2013 not appear have microsoft office charts option within toolbox, has been changed?

thanks!

case 1: if chart on worksheet, easier below:

private sub userform_initialize()     dim fname string      call savechart     fname = thisworkbook.path & "\temp1.gif"     me.image1.picture = loadpicture(fname) end sub  private sub savechart()     dim mychart chart     dim fname string      set mychart = sheets("data").chartobjects(1).chart     fname = thisworkbook.path & "\temp1.gif"     mychart.export filename:=fname, filtername:="gif" end sub 

case 2: if chart not on worksheet, may need create temporary chart, save gif, delete it, , load picture {

me.image1.picture = loadpicture(fname) 

} when userform initialized.

case 1 easier code. above code still works cut , paste chart in later-hidden worksheet.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -