The following issue affects me. I appreciate your assistance in advance. -
I'm attempting to set up 7 charts [Doughnut] in a 3x4 arrangement, meaning I want the charts to be arranged in 3 columns and 4 rows. What my code prints in an Excel worksheet is shown below.
I want it printed in this fashion:
This is the code that I have:
Const TopAnchor As Long = 8
Const LeftAnchor As Long = 140
Const HorizontalSpacing As Long = 3
Const VerticalSpacing As Long = 3
Const ChartHeight As Long = 125
Const ChartWidth As Long = 210
Dim Counter As Long
Counter = 0 Counter = Counter + 1
With ActiveChart.Parent
.Top = TopAnchor + (WorksheetFunction.RoundUp(Counter / 3, 0) - 1) * (VerticalSpacing + ChartHeight)
.Left = LeftAnchor + ((Counter) Mod 4) * (HorizontalSpacing + ChartWidth)
.Height = 125
.Width = 200
End With