Hi, I have spreadsheet with data on it. I have created a Chart using visual basic. My next step is to display this chart on a picture box. I have read about pictures boxes and they display images of BMP, GIF and metafile format. So I need to save this chart to .BMP or GIF format and show it on the Picture box. I have done some more research on this but with out success. Can you please help me?
This is a line I found but it does not work:
oXSheet.ChartObjects(1).Chart.Export FileName:="c:\Log\AllData1.gif", FilterName:="GIF"
When I run it I get this message: Object variable or With block variable not set