I am trying to add a the XL graph object to a form but it dosen't seem to see the data from the sheet i've selected. Could anyone tell me how i populate the Graph Object with data?
I assume you're trying to use a MSOffice Chart 9.0 Object in a UserForm - am I correct?
I believe the MSOffice Chart 9.0 requires an associated MSOffice Spreadsheet 9.0 Object on the same Form, but I've not tried to use it.
To display a chart created from Worksheet data, it's best to:
1. Embed the chart in the sheet with its data.
2. Name it (See my FAQ707-4055 for how to do this).
3. Export it as a GIF picture, then Import it into an Image object on the form.
This method's a bit clunky, but it works. John Walkenbach describes the method here:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.