2
I have a graphic scheme on Excel which is done by way of conditional formatting (see figure below), ie in the colored cells there is no content, only the background colors are changed based on values of other cells.
The dashed blue line is done by a routine on VBA (the connections are complex to make also the borders by conditional formatting), occurs that the user after launching the values when they need to be changed, the figures are updated dynamically by own Excel, but the dashed line requires a button to be triggered so that the VBA redo the connections (which is natural), that is, there is visual discrepancy between the data and the graphic results presented until the routine is triggered.
This harms the data release itself that depends on the desired outcome of what is being analyzed graphically. The figure below shows this situation, the disconnection of the dashed line that is not changed dynamically.
The next figure shows the result after the routine is triggered by the button.
The routine redoes the connections immediately without any waiting time. What I couldn’t find is a way for routine to be dynamically triggered as soon as the Excel automatically redo calculations for any changes made to the spreadsheet.
The Application.Calculate
triggers the calculation in Excel (idem typing F9
) from the VBA, What I need is the reverse, the automatic recalculation of the Excel trigger the routine in VBA.
It is possible?
Tash_riser, thanks for the reply. In my case this does not solve, because all the work in this graph is done in a single tab. What is changed are values in cells corresponding to the drawing in the diagram, so it would have to work with each recalculation of Exzcel, when any cell has its value changed.
– Leo
I submitted another answer. See if this solves it!
– J. L. Muller