PC Review


Reply
Thread Tools Rate Thread

drawing chart only of select data

 
 
srijanasapkota@gmail.com
Guest
Posts: n/a
 
      17th Apr 2006
Hi All,
I am very new person to VBA world. I am given a task of drawing a
XY Scatter Plot of data that are marked 1 ( or marked by checkbox) and
showing the labels of those data. I started with some online help and
auto-filter but I am stuck now.

This is the kind of data I have:

State Height Age Show Flag
A 100 2 0
B 200 10 1
M 300 1 0
D 400 8 1
E 250 9 0

I used the code from
http://support.microsoft.com/?kbid=213750
to add data lables to my plot but when I use auto-filter to show the
rows with the "show flag=1", then the code snippet from Microsoft
doesn't take the filtering into account and shows the labels from the
unfiltered data.

I am plotting height(x axis) versus Age(y-axis) with State name as data
label.

Any help would be appreciated.

thank you
Sri

 
Reply With Quote
 
 
 
 
Andy Pope
Guest
Posts: n/a
 
      18th Apr 2006
Hi,

You should only need to run the code once to apply labels to all points.
The use auto filter to reduce the points displayed. This will only work
if you have the option "Plot visible cells only" enabled. Select the
chart and use the menus Tools > Options > Chart to check setting.

Cheers
Andy

(E-Mail Removed) wrote:
> Hi All,
> I am very new person to VBA world. I am given a task of drawing a
> XY Scatter Plot of data that are marked 1 ( or marked by checkbox) and
> showing the labels of those data. I started with some online help and
> auto-filter but I am stuck now.
>
> This is the kind of data I have:
>
> State Height Age Show Flag
> A 100 2 0
> B 200 10 1
> M 300 1 0
> D 400 8 1
> E 250 9 0
>
> I used the code from
> http://support.microsoft.com/?kbid=213750
> to add data lables to my plot but when I use auto-filter to show the
> rows with the "show flag=1", then the code snippet from Microsoft
> doesn't take the filtering into account and shows the labels from the
> unfiltered data.
>
> I am plotting height(x axis) versus Age(y-axis) with State name as data
> label.
>
> Any help would be appreciated.
>
> thank you
> Sri
>


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
 
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
Select Specific Data From Cells For A Chart Dave Microsoft Excel Misc 4 21st May 2010 05:35 PM
how to select multiple data series in a chart? REER Microsoft Excel Charting 1 5th Nov 2009 12:54 AM
Chart Data Table - How to select two columns Noel S Pamfree Microsoft Excel Discussion 2 17th Jun 2009 12:20 AM
Drawing a chart over a filtered data source foley Microsoft Excel Discussion 1 16th Feb 2006 01:43 PM
Select all chart data points CL Microsoft Excel Discussion 2 26th Jan 2005 01:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:13 PM.