Solved

Line up charts

Posted on 2014-04-20
4
188 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 33

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 33

Author Closing Comment

by:Mike Eghtebas
ID: 40011495
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now