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

Hi Group,
Looked through several sources, but can not seem to find
the code to make a chart the upper left corner at "L2." I
know it exits, because I have done it before, but cn not
remmber the syntax.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Position chart

David,
<Object Browser
Property TopLeftCell As Range
read-only
Member of Excel.ChartObject
</Object Browser

Unless there's another way ??

NickHK


"David" wrote in message
...
Hi Group,
Looked through several sources, but can not seem to find
the code to make a chart the upper left corner at "L2." I
know it exits, because I have done it before, but cn not
remmber the syntax.
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default Position chart

There is another way, where you designate the cell where
you want the upper left of the chart to be, but I can not
remeber the syntax. thanks David
-----Original Message-----
David,
<Object Browser
Property TopLeftCell As Range
read-only
Member of Excel.ChartObject
</Object Browser

Unless there's another way ??

NickHK


"David" wrote in

message
...
Hi Group,
Looked through several sources, but can not seem to

find
the code to make a chart the upper left corner

at "L2." I
know it exits, because I have done it before, but cn

not
remmber the syntax.
Thanks



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Position chart

David,
That's what this property shows, but as you see the object browser is saying
it is read-only.

Maybe:
Do Until MyChart.TopLeftCell.Column=MyRange.Column
MyChart.Left=MyChart.Left+1
Loop

NickHK

"David" wrote in message
...
There is another way, where you designate the cell where
you want the upper left of the chart to be, but I can not
remeber the syntax. thanks David
-----Original Message-----
David,
<Object Browser
Property TopLeftCell As Range
read-only
Member of Excel.ChartObject
</Object Browser

Unless there's another way ??

NickHK


"David" wrote in

message
...
Hi Group,
Looked through several sources, but can not seem to

find
the code to make a chart the upper left corner

at "L2." I
know it exits, because I have done it before, but cn

not
remmber the syntax.
Thanks



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Position chart

Hi,

Try this,

ActiveChart.Parent.Left = Range("L2").Left
ActiveChart.Parent.Top = Range("L2").Top

Cheers
Andy

David wrote:

There is another way, where you designate the cell where
you want the upper left of the chart to be, but I can not
remeber the syntax. thanks David

-----Original Message-----
David,
<Object Browser
Property TopLeftCell As Range
read-only
Member of Excel.ChartObject
</Object Browser

Unless there's another way ??

NickHK


"David" wrote in


message

...

Hi Group,
Looked through several sources, but can not seem to


find

the code to make a chart the upper left corner


at "L2." I

know it exits, because I have done it before, but cn


not

remmber the syntax.
Thanks



.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default Position chart

Thanks, this does exactly what I want it to do. The
syntax is differant than what I used before, so I think
there is another way to do it. But it works great.
Thanks, again.
-----Original Message-----
Hi,

Try this,

ActiveChart.Parent.Left = Range("L2").Left
ActiveChart.Parent.Top = Range("L2").Top

Cheers
Andy

David wrote:

There is another way, where you designate the cell

where
you want the upper left of the chart to be, but I can

not
remeber the syntax. thanks David

-----Original Message-----
David,
<Object Browser
Property TopLeftCell As Range
read-only
Member of Excel.ChartObject
</Object Browser

Unless there's another way ??

NickHK


"David" wrote in


message

.. .

Hi Group,
Looked through several sources, but can not seem to


find

the code to make a chart the upper left corner


at "L2." I

know it exits, because I have done it before, but cn


not

remmber the syntax.
Thanks


.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
.

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
Macro to change position of chart labels on line chart Shane Henderson[_2_] Charts and Charting in Excel 1 May 27th 11 09:31 AM
Chart position changes narnimar Excel Discussion (Misc queries) 0 August 5th 07 12:46 PM
text position on a chart Chris Excel Discussion (Misc queries) 1 January 29th 07 01:45 PM
Chart text position Chris Excel Discussion (Misc queries) 1 January 27th 07 02:39 AM
How to set the chart position exactly? ramkumar_cpt Charts and Charting in Excel 1 March 11th 06 01:23 PM


All times are GMT +1. The time now is 06:57 AM.

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"