Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Chart question

Hi,

I have two charts and would like only one of them to be
visible at anuy one time. They occupy the same area of
the screen and would like to add a button or two to
toggle them on or off. I have run a macro which selects
one of the charts and then use Send to Back. However when
attaching the code from this macro to the button I get an
error. Can anyone help?

Thanks,
Matt
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Chart question

This will toggle hiding/unhiding a chart
Sub hideunhidechart()
Sheets("Sheet5").ChartObjects("Chart 1").Visible = _
Not Sheets("Sheet5").ChartObjects("Chart 1").Visible
End Sub

--
Don Guillett
SalesAid Software

"Matt" wrote in message
...
Hi,

I have two charts and would like only one of them to be
visible at anuy one time. They occupy the same area of
the screen and would like to add a button or two to
toggle them on or off. I have run a macro which selects
one of the charts and then use Send to Back. However when
attaching the code from this macro to the button I get an
error. Can anyone help?

Thanks,
Matt



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default Chart question

Matt -

On this page I show how to select which chart to show based on a
selection from a combo box or list box (the second example):

http://www.geocities.com/jonpeltier/...eDropDown.html

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

Matt wrote:

Hi,

I have two charts and would like only one of them to be
visible at anuy one time. They occupy the same area of
the screen and would like to add a button or two to
toggle them on or off. I have run a macro which selects
one of the charts and then use Send to Back. However when
attaching the code from this macro to the button I get an
error. Can anyone help?

Thanks,
Matt


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 question 00KobeBrian Excel Discussion (Misc queries) 15 November 3rd 06 08:29 PM
Bar chart question bevpike Charts and Charting in Excel 1 October 20th 06 03:26 PM
how to chart question Jeff Kish Charts and Charting in Excel 2 April 8th 06 05:57 AM
chart question Cowtoon Charts and Charting in Excel 1 February 14th 06 12:56 AM
pie chart question..... Spam Trap Charts and Charting in Excel 2 April 15th 05 02:59 AM


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