Hello all
My question is about the PlotArea. I want set the PlotArea to a certain range (See pic below). So if the S-Curve period is 11 days, 11 columns need to be divided over the PlotArea.InsideWidth. If the S-Curve period is 40 days, 40 columns need to be divided over the PlotArea.InsideWidth. I want this, so I can put a custum data table in the cells under the PlotArea. This way the data in the cells en de data in the graph are aligned. In the picture below (done by hand) I used snap on grid and the PlotArea alignes with the range I want. Only problem is, I want to do this in VBA.
I want the PlotArea.Insidewith to be 1350 (or around that) al the time, only the column.width differs.
10 columns = 1350
15 columns = 1350
44 columns = 1350
For Example
15 columns of 20 width (cell.width = 108.75)
If I select the 15 columns and use Selection.Width I get 1631.25 (15 x 108.75)
If I select the PlotArea and use ActiveChart.PlotArea.InsideWidth I get 1636.25
Even though I used snap to grid! So it doesn't seem to correspond with eachother.
Long story short, I'm a bit lost in al this. I hope I made myself clear. Thanks in advance!
My question is about the PlotArea. I want set the PlotArea to a certain range (See pic below). So if the S-Curve period is 11 days, 11 columns need to be divided over the PlotArea.InsideWidth. If the S-Curve period is 40 days, 40 columns need to be divided over the PlotArea.InsideWidth. I want this, so I can put a custum data table in the cells under the PlotArea. This way the data in the cells en de data in the graph are aligned. In the picture below (done by hand) I used snap on grid and the PlotArea alignes with the range I want. Only problem is, I want to do this in VBA.
I want the PlotArea.Insidewith to be 1350 (or around that) al the time, only the column.width differs.
10 columns = 1350
15 columns = 1350
44 columns = 1350
For Example
15 columns of 20 width (cell.width = 108.75)
If I select the 15 columns and use Selection.Width I get 1631.25 (15 x 108.75)
If I select the PlotArea and use ActiveChart.PlotArea.InsideWidth I get 1636.25
Even though I used snap to grid! So it doesn't seem to correspond with eachother.
Long story short, I'm a bit lost in al this. I hope I made myself clear. Thanks in advance!

Last edited: