PC Review


Reply
 
 
=?Utf-8?B?Q2hhZFRhcmdldA==?=
Guest
Posts: n/a
 
      21st Sep 2006
I am trying to create sectioned graphs using scatter plots. I need a macro
to be able to draw boxes for the particular areas on the graph using median
points which can change from graph to graph. I'm using the following code,
but I do not know how to tie these points to values in the graph. I can pull
over actual (x,y) from the data, but it needs to be converted into points or
pixels or whatever unit of measure the graphing tool is using. I basically
want a box that starts in the lower left @ (0,0) and goes to
(medianx,mediany) in the upper right and variations thereof. Any ideas?

myCht.Shapes.AddShape(msoShapeRectangle, Xleft, mySrs.Yvalues(Ipts),
Xwidth, Yheight - med1y).Select
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      21st Sep 2006
The code on this page will show how to get the coordinates you need:

http://peltiertech.com/Excel/Charts/VBAdraw.html

This might be a better approach:

http://peltiertech.com/Excel/Charts/...ackground.html

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


"ChadTarget" <(E-Mail Removed)> wrote in message
news5CF6555-B7B0-45F1-9AA2-(E-Mail Removed)...
>I am trying to create sectioned graphs using scatter plots. I need a macro
> to be able to draw boxes for the particular areas on the graph using
> median
> points which can change from graph to graph. I'm using the following
> code,
> but I do not know how to tie these points to values in the graph. I can
> pull
> over actual (x,y) from the data, but it needs to be converted into points
> or
> pixels or whatever unit of measure the graphing tool is using. I
> basically
> want a box that starts in the lower left @ (0,0) and goes to
> (medianx,mediany) in the upper right and variations thereof. Any ideas?
>
> myCht.Shapes.AddShape(msoShapeRectangle, Xleft, mySrs.Yvalues(Ipts),
> Xwidth, Yheight - med1y).Select



 
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 I use Quadrant in a formula in Infopath? =?Utf-8?B?TWljaGllbA==?= Microsoft Access Forms 1 19th Oct 2007 01:49 PM
quadrant recognition =?Utf-8?B?QWxla3NhbmRy?= Microsoft Excel Misc 1 20th Sep 2007 03:24 PM
Quadrant Chart =?Utf-8?B?TnVsbGlmaWVy?= Microsoft Excel Charting 4 20th Jun 2007 07:01 PM
Quadrant Chart Sample testspecmed@hotmail.com Microsoft Excel Charting 2 28th Sep 2006 03:54 AM
four quadrant graph =?Utf-8?B?YXdkZ3VybA==?= Microsoft Excel Charting 2 19th Jan 2005 01:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:46 PM.