Solved

Line up charts

Posted on 2014-04-20
4
192 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
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
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…

808 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