Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Shapes with boundaries tied to chart data points

I have added several shapes to a standalone chart (in VBA) with the boundary
points defined as data values converted to points in chart coordinates.
Though this looks great on the screen, the boundaries are way out of place
when I resize / reshape the window or print the chart. Is there a way to
tie shape boundaries to coordinates on the chart so that the shape maintains
its relationship to the chart when the window is resized / reshaped or the
chart is printed? I'm using Excel 2002.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Shapes with boundaries tied to chart data points

Ken -

The only way to ensure that a drawn-on object fits properly when the
chart is resized is to redraw it after resizing the chart. To assure a
shape that fit when the chart was finished will fit when printed, don't
print the chart, select the underlying range of cells and print that
range. (I've been down this road.)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

Ken Paul wrote:
I have added several shapes to a standalone chart (in VBA) with the boundary
points defined as data values converted to points in chart coordinates.
Though this looks great on the screen, the boundaries are way out of place
when I resize / reshape the window or print the chart. Is there a way to
tie shape boundaries to coordinates on the chart so that the shape maintains
its relationship to the chart when the window is resized / reshaped or the
chart is printed? I'm using Excel 2002.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Shapes with boundaries tied to chart data points


if it's "loose" shapes you're working with that's going to be a
nightmare :(

can't you use datalabels?

they're connected to the data and can be formatted/positioned relative
to the data they belong to.

have a look at the DataLabel object in vba help.



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Ken Paul" wrote:

I have added several shapes to a standalone chart (in VBA) with the
boundary points defined as data values converted to points in chart
coordinates. Though this looks great on the screen, the boundaries are
way out of place when I resize / reshape the window or print the
chart. Is there a way to tie shape boundaries to coordinates on the
chart so that the shape maintains its relationship to the chart when
the window is resized / reshaped or the chart is printed? I'm using
Excel 2002.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Shapes with boundaries tied to chart data points

Thank you for the response. The problem with this is that the chart is in
an independent sheet, not overlaying cells in a worksheet. I create it in a
complex workbook with many sheets and large VBA modules, then copy the one
chart to a new workbook with no modules for wider distribution. Some
recipients just view the resulting chart on their screen, others print the
resulting chart in various paper sizes. Everything resizes properly except
the shapes I create to shade and label various sections of the chart -- the
shapes are tied to multiple datapoints. Is there an event I could use to
re-draw the shapes when the screen size or paper size changes to redraw the
shapes?

Ken

"Jon Peltier" wrote in message
...
Ken -

The only way to ensure that a drawn-on object fits properly when the
chart is resized is to redraw it after resizing the chart. To assure a
shape that fit when the chart was finished will fit when printed, don't
print the chart, select the underlying range of cells and print that
range. (I've been down this road.)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

Ken Paul wrote:
I have added several shapes to a standalone chart (in VBA) with the

boundary
points defined as data values converted to points in chart coordinates.
Though this looks great on the screen, the boundaries are way out of

place
when I resize / reshape the window or print the chart. Is there a way

to
tie shape boundaries to coordinates on the chart so that the shape

maintains
its relationship to the chart when the window is resized / reshaped or

the
chart is printed? I'm using Excel 2002.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Shapes with boundaries tied to chart data points

Thank you for the response. I'm already using datalabels in the chart, and
they're working properly. The shapes I'm talking about are tied to multiple
datapoints. Their purpose is to shade and label various sections of the
chart. I create the chart in a complex workbook with many sheets and large
VBA modules, then copy the one chart to a new workbook with no modules for
wider distribution. Some recipients just view the resulting chart on their
screen, others print the resulting chart in various paper sizes. Everything
resizes properly except these shapes. What's needed is a way to define
shapes with boundary points tied to data values rather than to pixel
locations.

Ken

"keepitcool" wrote in message
...

if it's "loose" shapes you're working with that's going to be a
nightmare :(

can't you use datalabels?

they're connected to the data and can be formatted/positioned relative
to the data they belong to.

have a look at the DataLabel object in vba help.



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Ken Paul" wrote:

I have added several shapes to a standalone chart (in VBA) with the
boundary points defined as data values converted to points in chart
coordinates. Though this looks great on the screen, the boundaries are
way out of place when I resize / reshape the window or print the
chart. Is there a way to tie shape boundaries to coordinates on the
chart so that the shape maintains its relationship to the chart when
the window is resized / reshaped or the chart is printed? I'm using
Excel 2002.








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Shapes with boundaries tied to chart data points

Ken,

Perhaps you're aware of this already, but if you create a drawing
object inside the chart (i.e. while the chart window is active or
selected), afterwards it will resize the shape within the chart to
scale. You could revise your VBA to add the shapes to the
ActiveChart. If you create the drawing object on the worksheet, it
will be difficult to have it adjust automatically. HTH

Jason Goto
AnalysisWorks Inc
Evidence-Based Management Consulting
www.analysisworks.net

"Ken Paul" wrote in message ...
Thank you for the response. I'm already using datalabels in the chart, and
they're working properly. The shapes I'm talking about are tied to multiple
datapoints. Their purpose is to shade and label various sections of the
chart. I create the chart in a complex workbook with many sheets and large
VBA modules, then copy the one chart to a new workbook with no modules for
wider distribution. Some recipients just view the resulting chart on their
screen, others print the resulting chart in various paper sizes. Everything
resizes properly except these shapes. What's needed is a way to define
shapes with boundary points tied to data values rather than to pixel
locations.

Ken

"keepitcool" wrote in message
...

if it's "loose" shapes you're working with that's going to be a
nightmare :(

can't you use datalabels?

they're connected to the data and can be formatted/positioned relative
to the data they belong to.

have a look at the DataLabel object in vba help.



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Ken Paul" wrote:

I have added several shapes to a standalone chart (in VBA) with the
boundary points defined as data values converted to points in chart
coordinates. Though this looks great on the screen, the boundaries are
way out of place when I resize / reshape the window or print the
chart. Is there a way to tie shape boundaries to coordinates on the
chart so that the shape maintains its relationship to the chart when
the window is resized / reshaped or the chart is printed? I'm using
Excel 2002.




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
Chart and Data points MCook Charts and Charting in Excel 0 September 11th 09 09:49 PM
I need to chart some data points! gford Charts and Charting in Excel 5 September 25th 08 04:04 PM
Data Points in Chart Mike Excel Discussion (Misc queries) 4 February 23rd 07 01:20 PM
excel positioning in Points for vba shapes Kelzina Excel Worksheet Functions 1 November 15th 06 02:22 PM
tough problem - working out if data is within certain boundaries phillip harrison Excel Programming 4 July 17th 03 05:53 PM


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