troubleshooting Question

Saving an Excel Chart as BMP To Display on Visual Basic Picture Box

Avatar of caleno
caleno asked on
Visual Basic Classic
7 Comments1 Solution1639 ViewsLast Modified:
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  
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros