Embedded DPlot Graph

VBA and general Excel Q&A and examples

Moderator: DPlotAdmin

Post Reply
jwarrick
Posts: 2
Joined: Wed Jul 29, 2009 9:10 pm

Embedded DPlot Graph

Post by jwarrick »

Hopefully this has not been asked before but if it has please point me to the correct string.

Is it possible to embed a DPlot Graph inside of an excel work book and make it automatically update when the data changes in the cells?
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Yes, but unfortunately that two-way link will only work during the current DPlot/Excel session. Once you close either one, the relationship will be gone.

Copy the data you want to plot in Excel. Switch to DPlot. Use Edit>Paste Special and check the "Link" box. Click the "Copy Picture" button on the toolbar. Switch back to Excel. Select Edit>Paste Special. Click the "Paste link" option.
Visualize Your Data
support@dplot.com
jwarrick
Posts: 2
Joined: Wed Jul 29, 2009 9:10 pm

Post by jwarrick »

David,

Thank you very much for the quick response. I think I should have stated the question a little differently.

Is there a way to get around losing the relationship once dplot is closed? Maybe a macro that triggers on the Workbook sheetcalculate event that would:

open dplot up
refreshes the data / graph
saves the file
closes dplot

It seems like it would be possible and hopefully someone else has already created a similar code?
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

As far as I know nobody has created anything to do what you want.

The two problems I see are storing the source columns/rows, and the location and type of the pasted picture. I can probably work something out with an Add-In option: if checked then store the XLS filename, source reference, and name of the pasted graph in a separate file. I really have no idea whether this can be made to work :-), but I will look into it.
Visualize Your Data
support@dplot.com
Post Reply