Pie Chart Position & Size

millhouse123

Active Member
Joined
Aug 22, 2006
Messages
335
I have two Pie charts side by side and I am having a bit of difficulty getting them to be symetrically and was wondering if anyone had any idea why. Below is the code I use to set the size and position. As you can see Chart 1 & 2 have the exact same dimentions and Vertical Position. The only thing that is different is the Horizontal Position. the problem I have is that no matter what I put Left at on chart 2 it stays in the same place (about an 3 inchs to the right of the other chart - only want 2 inches of seperation)


Any ideas would be great.

Code:
'Chart 1
   With ActiveSheet.ChartObjects(1)
        .Top = 322.5
        .Left = 70
        .Width = 337.5
        .Height = 264
   End With
 
   With ActiveChart.PlotArea
        .Top = 322.5
        .Left = 175
        .Width = 337.5
        .Height = 264
    End With
 
 
'Chart 2
   With ActiveSheet.ChartObjects(2)
        .Top = 322.5
        .Left = 450
        .Width = 337.5
        .Height = 264
   End With
 
   With ActiveChart.PlotArea
        .Top = 322.5
        .Left = 175
        .Width = 337.5
        .Height = 264
    End With
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top