PC Review


Reply
Thread Tools Rate Thread

Chart Placement incorrect in macro due to differant screen resolutions

 
 
lukegunther@yahoo.com
Guest
Posts: n/a
 
      1st Nov 2007
Hi Team,

Hoping you can help me out with this one which I immagine is pretty
common.

I have created a a macro which in turn creates a series of charts to
display. While on my machine they appear perfectly placed, when other
users access the macro the charts will be a differant dimension and
not in the right place.

Of course this is very frustrating for other users, no so much myself
however

I was hoping there was a way to define possibly by Cell Referance
where the charts appear?

All help will be greatly appreciated.

Thanks,

Luke

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      1st Nov 2007
Charts are placed by there .left and .top location. A cell also has a .left
and .top property.

If you had the chart name you could do something like this

for each chrt in activesheet.shapes
chrt.top = Range("B5").top
chrt.left = Range("B5").right
next chrt


"(E-Mail Removed)" wrote:

> Hi Team,
>
> Hoping you can help me out with this one which I immagine is pretty
> common.
>
> I have created a a macro which in turn creates a series of charts to
> display. While on my machine they appear perfectly placed, when other
> users access the macro the charts will be a differant dimension and
> not in the right place.
>
> Of course this is very frustrating for other users, no so much myself
> however
>
> I was hoping there was a way to define possibly by Cell Referance
> where the charts appear?
>
> All help will be greatly appreciated.
>
> Thanks,
>
> Luke
>
>

 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      1st Nov 2007
One way:

With ActiveSheet
.ChartObjects(1).Top = Range("F10").Top
.ChartObjects(1).Left = Range("F10").Left
End With


In article <(E-Mail Removed)>,
(E-Mail Removed) wrote:

> I was hoping there was a way to define possibly by Cell Referance
> where the charts appear?

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      2nd Nov 2007
Similarly,

With ActiveSheet
.ChartObjects(1).Width = Range("F10:M30").Width
.ChartObjects(1).Height = Range("F10:M30").Height
End With

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


"JE McGimpsey" <(E-Mail Removed)> wrote in message
news:jemcgimpsey-(E-Mail Removed)...
> One way:
>
> With ActiveSheet
> .ChartObjects(1).Top = Range("F10").Top
> .ChartObjects(1).Left = Range("F10").Left
> End With
>
>
> In article <(E-Mail Removed)>,
> (E-Mail Removed) wrote:
>
>> I was hoping there was a way to define possibly by Cell Referance
>> where the charts appear?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you build a chart with two differant number formats? Scarlett Microsoft Excel Charting 3 1st Jun 2008 07:56 AM
Screen Resolutions and differnt placement of frame puppymalo@hotmail.com Microsoft Frontpage 2 25th Mar 2004 10:10 AM
Scheduling a meeting with differant people at differant times skippy Microsoft Outlook Calendar 1 28th Jan 2004 05:05 PM
Incorrect URL resolutions Chuck Windows XP Internet Explorer 2 12th Nov 2003 02:33 PM
problem viewing certain screen resolutions/games in full screen george bellanger Windows XP Video 1 4th Aug 2003 02:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:37 PM.