Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Chart Placement incorrect in macro due to differant screen resolutions

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Chart Placement incorrect in macro due to differant screen resolut

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


" 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Chart Placement incorrect in macro due to differant screen resolutions

One way:

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


In article . com,
wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Chart Placement incorrect in macro due to differant screen resolutions

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" wrote in message
...
One way:

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


In article . com,
wrote:

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



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
Need to convert point on screen to various screen resolutions Donna YaWanna Excel Discussion (Misc queries) 5 October 26th 05 10:10 PM
Need to convert point on screen to various screen resolutions Donna YaWanna Excel Programming 5 October 26th 05 10:10 PM
Splash screen and various screen resolutions George J Excel Programming 4 October 3rd 04 10:15 PM
Restoring Screen Resolutions adam99[_4_] Excel Programming 3 July 11th 04 12:42 PM
different screen resolutions Rob Excel Programming 0 December 10th 03 09:48 PM


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