Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
ExcelUser123
 
Posts: n/a
Default How do i move a chart


I’m trying to record a macro that will get data from a row on sheet 2,
create a chart and place it on sheet 1 and then move the chart to say
row 20. This will be nested inside a loop so that next time a chart is
created it will be placed at row 40. So that when a page is printed,
each will have a different chart in the same place as the previous
page.
I have managed to get the chart on sheet 1; problem is they all
get placed on top of one another and in the middle of the sheet. I have
tried dragging while recording but then the problem is trying to
calculate the number to get it placed in the exact position lower down
the sheet.


Rich….


--
ExcelUser123
------------------------------------------------------------------------
ExcelUser123's Profile: http://www.excelforum.com/member.php...o&userid=34448
View this thread: http://www.excelforum.com/showthread...hreadid=542652

  #2   Report Post  
Posted to microsoft.public.excel.charting
Andy Pope
 
Posts: n/a
Default How do i move a chart

Hi,

Top position the activechart object use it .Parent.Top property.
So something like this,

activechart.Parent.top = activesheet.rows(20).top

obviously you will need to use a variable to increment the actual row
number.

Cheers
Andy

ExcelUser123 wrote:
I’m trying to record a macro that will get data from a row on sheet 2,
create a chart and place it on sheet 1 and then move the chart to say
row 20. This will be nested inside a loop so that next time a chart is
created it will be placed at row 40. So that when a page is printed,
each will have a different chart in the same place as the previous
page.
I have managed to get the chart on sheet 1; problem is they all
get placed on top of one another and in the middle of the sheet. I have
tried dragging while recording but then the problem is trying to
calculate the number to get it placed in the exact position lower down
the sheet.


Rich….



--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3   Report Post  
Posted to microsoft.public.excel.charting
ExcelUser123
 
Posts: n/a
Default How do i move a chart


Brilliant just what i was looking for, thanks for your help.

Rich....:) :)


--
ExcelUser123
------------------------------------------------------------------------
ExcelUser123's Profile: http://www.excelforum.com/member.php...o&userid=34448
View this thread: http://www.excelforum.com/showthread...hreadid=542652

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
Selecting part of a series for a chart? Al Charts and Charting in Excel 6 May 16th 06 12:45 PM
How can I combine a stacked bar chart with stacked colum chart? Sin Charts and Charting in Excel 8 December 20th 05 03:50 AM
Chart Property Confusion Arturo Charts and Charting in Excel 4 December 16th 05 05:13 AM
Activating a Chart object Hari Prasadh Charts and Charting in Excel 6 August 2nd 05 07:22 PM
tick mark labels Debrane Charts and Charting in Excel 9 July 19th 05 02:53 AM


All times are GMT +1. The time now is 12:10 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"