Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default moving charts

Hi All,

I am creating a lot of graphs and I would like to know how to move each
graphs. So my code generates a lot of graphs at once and all the graphs are
on top of each other. So I would like to know how to make them display at
different location on the screen. I have the following code idea, but of
course it doesn't work. =( please help!


Sub moveAllCharts()

Dim num1 As Integer
Dim num2 As Integer
Dim cht_num As String
num1 = 184
num2 = 108

For i = 1 To ActiveSheet.ChartObjects.Count
ActiveSheet.ChartObjects(i).Activate
ActiveChart.ChartArea.Select
ActiveChart.Shapes("Chart i").IncrementLeft num1
ActiveChart.Shapes("Chart i").IncrementTop num2
num1 = num1 + 50
num2 = num1 + 50
Next i

End Sub

thanks so much in advance!
tracktraining
--
Learning
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
Charts moving unexpectly when printing in Excel 2003 JDraffko Charts and Charting in Excel 2 June 17th 08 01:38 PM
OFFSET Charts - moving data length Paul Dennis Charts and Charting in Excel 0 December 19th 06 05:10 PM
Moving Average (Charts) Jamesy Charts and Charting in Excel 6 July 31st 06 09:59 AM
Moving Average (Charts) Jamesy Excel Discussion (Misc queries) 0 July 26th 06 10:11 AM
Moving/deleting pictures within charts via macros Walshy[_3_] Excel Programming 1 October 21st 04 11:11 AM


All times are GMT +1. The time now is 10:18 PM.

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

About Us

"It's about Microsoft Excel"