lining up charts

kevint504

New Member
Joined
Sep 7, 2004
Messages
25
maybe I'm just having a bad brain day but...

I'm creating bunches of charts that need to be printed out, several to a page. I'd like to line them up nicely (e.g. in two columns of four charts or some such). Now, obviously I can pick them up and drag them around but it's difficult to line them up exactly and it looks bad when I print them. I assume there's some kind of 'snap to grid' or 'align charts' option, but I can't find it. It must exist, surely?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Nope. Do macro record as you're trying to pick them up and drag them, then look at the code and you'll see the coordinates that you've jsut done ny hand ... tweak them so that they all match, and run the recorded macro.
 
Upvote 0
Strange that it's not a built-in feature.
Like the record macro idea. Sadly I'm a vba dunce, so can you tell me how to change these bits...
Code:
ActiveSheet.Shapes("Chart 1").IncrementLeft -3.75
to provide absolute sheet locations rather than recording the relative movement?

many thanks,

Kev
 
Upvote 0
There's lots of ways to do it ... one way is to change IncrementLeft to Left and choose a number for the location.

Or maybe something like this:
Code:
    ActiveSheet.ChartObjects("Chart 1").Activate
    ActiveChart.ChartArea.Select
    With ActiveSheet.Shapes("Chart 1")
        .Left = .TopLeftCell.Left + 25
    End With
for all the charts in a group. It will snap them all to 25 points to the right of the left hand edge of the column they are over.
 
Upvote 0

Forum statistics

Threads
1,203,094
Messages
6,053,507
Members
444,667
Latest member
KWR21

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