Solved

Line up charts

Posted on 2014-04-20
4
197 Views
Last Modified: 2014-04-20
There are 3 charts on Sheet1 of the attached file.

Question: How can I line up these charts using VBA?

The top chart Left value will be applied to the other two.

Thank you.
0
Comment
Question by:Mike Eghtebas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 15

Expert Comment

by:unknown_routine
ID: 40011326
No attachment.
0
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 40011329
Sorry. Here it is.
SampleChart.xlsm
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 40011354
This will change the left as well as the height and width to make all three match

ActiveSheet.Shapes("Chart 4").Left = ActiveSheet.Shapes("Chart 3").Left
ActiveSheet.Shapes("Chart 4").Width = ActiveSheet.Shapes("Chart 3").Width
ActiveSheet.Shapes("Chart 4").Height = ActiveSheet.Shapes("Chart 3").Height
ActiveSheet.Shapes("Chart 5").Left = ActiveSheet.Shapes("Chart 3").Left
ActiveSheet.Shapes("Chart 5").Width = ActiveSheet.Shapes("Chart 3").Width
ActiveSheet.Shapes("Chart 5").Height = ActiveSheet.Shapes("Chart 3").Height
0
 
LVL 34

Author Closing Comment

by:Mike Eghtebas
ID: 40011495
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question