PC Review


Reply
Thread Tools Rate Thread

Chart points ON/OFF help request

 
 
joecrabtree
Guest
Posts: n/a
 
      23rd Nov 2007
To all,

I have the following macro that turns the points off on an embedded
chart. However I want to assign this to a check box, so when I check
it the points turn on, and when I un-check it the points turn off. I
believe that the macro will need to be modified to turn the points
back on again?


Sub pointson()

ActiveSheet.ChartObjects("Chart 5").Activate
ActiveChart.PlotArea.Select
ActiveChart.SeriesCollection(2).Select
With Selection.Border
.Weight = xlThin
.LineStyle = xlAutomatic
End With
With Selection
.MarkerBackgroundColorIndex = xlAutomatic
.MarkerForegroundColorIndex = xlAutomatic
.MarkerStyle = xlNone
.Smooth = False
.MarkerSize = 5
.Shadow = False
End With
End Sub

Any ideas?

Thanks in advance for your help,

Regards

Joseph Crabtree
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      23rd Nov 2007
Answered in .charting.

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


"joecrabtree" <(E-Mail Removed)> wrote in message
news:75fb48ea-d089-45c2-a888-(E-Mail Removed)...
> To all,
>
> I have the following macro that turns the points off on an embedded
> chart. However I want to assign this to a check box, so when I check
> it the points turn on, and when I un-check it the points turn off. I
> believe that the macro will need to be modified to turn the points
> back on again?
>
>
> Sub pointson()
>
> ActiveSheet.ChartObjects("Chart 5").Activate
> ActiveChart.PlotArea.Select
> ActiveChart.SeriesCollection(2).Select
> With Selection.Border
> .Weight = xlThin
> .LineStyle = xlAutomatic
> End With
> With Selection
> .MarkerBackgroundColorIndex = xlAutomatic
> .MarkerForegroundColorIndex = xlAutomatic
> .MarkerStyle = xlNone
> .Smooth = False
> .MarkerSize = 5
> .Shadow = False
> End With
> End Sub
>
> Any ideas?
>
> Thanks in advance for your help,
>
> Regards
>
> Joseph Crabtree



 
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
Switch chart points ON/OFF help request joecrabtree Microsoft Excel Charting 1 23rd Nov 2007 04:44 PM
Print Preview chart when chart is clicked request. joecrabtree Microsoft Excel Programming 1 20th Nov 2007 02:00 PM
HELP!!!!!!!!!! Y By X Chart with points. =?Utf-8?B?Q3VydCBIYW5k?= Microsoft Excel Charting 3 29th Aug 2006 03:15 PM
Highlingting points on a chart R.Culley Microsoft Excel Charting 3 20th Apr 2006 05:25 PM
Bar Chart To Line Chart for last 3 points only Big H Microsoft Excel Charting 1 13th Oct 2005 09:55 PM


Features
 

Advertising
 

Newsgroups
 


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