Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Line up graphs

Try something like

ActiveSheet.ChartObjects(1).Top = Range("E5").Top
ActiveSheet.ChartObjects(1).Left = Range("E5").Left


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)



"S" wrote in message
...
Hi I am just wondering is it possible for me to line up graphs in macro?
For
instance, I want to line up the top left corner of a graph with cell "E5".

Thanks!



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Line up graphs

How does it work for i=0?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"S" wrote in message
...
Nevermind. The code I put below actually does work.

"S" wrote:

Thanks! What if I got a lists of graphs to align? Do those commands work
in a
For loop? What does the "index" do in the ChartObjects(index)?

I tried the following but it doesn't work:
For i = 0 To 1
ActiveSheet.ChartObjects(i).Top = Range("F" & i).Top
ActiveSheet.ChartObjects(i).Left = Range("F" & i).Left
Next

Thanks!

"Chip Pearson" wrote:

Try something like

ActiveSheet.ChartObjects(1).Top = Range("E5").Top
ActiveSheet.ChartObjects(1).Left = Range("E5").Left


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)



"S" wrote in message
...
Hi I am just wondering is it possible for me to line up graphs in
macro?
For
instance, I want to line up the top left corner of a graph with cell
"E5".

Thanks!





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
line graphs khw Excel Discussion (Misc queries) 1 April 5th 10 08:34 PM
Line graphs Charles Eaves Charts and Charting in Excel 3 October 16th 08 10:21 AM
Line graphs [email protected] Charts and Charting in Excel 1 June 8th 08 01:03 PM
How do you select line or columns in "Line-Column on 2 axes" graphs? mizterbusy Excel Discussion (Misc queries) 0 September 19th 06 06:48 AM
Line Graphs and Bar Graphs Christopher Anderson Excel Discussion (Misc queries) 1 December 3rd 04 06:16 PM


All times are GMT +1. The time now is 12:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"