Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default =IF(B3<O;nodisplay(graphA);display(graphA))

Hello,
I have a sheet with numbers and graphs.
If the number of the cell B3 is lower than zero, I wish that
Graph A, do not display.
Is it possible to manage this ?
What is fonction to use and how can I give a name for my graph.
Thanks for any help.
Thierry.

PS : I have a frensh version of Excel 2002


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default =IF(B3<O;nodisplay(graphA);display(graphA))

First, you can manually name a chart by:
1)Select a cell on the same sheet as the chart
2)Hold the [Ctrl] key and select the chart
The name box in the upper left will display the current chart name (Chart1,
etc).

3)In that name box, type the new name for the chart (example: myChart).

Next, hiding the chart if Cell B3 is less than zero:
Try this code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("B3") < 0 Then
ActiveSheet.ChartObjects("myChart").Visible = False
Else
ActiveSheet.ChartObjects("myChart").Visible = True
End If

End Sub

Does that help?

Regards,
Ron



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
Cells display as R5C5. How do I change it to display E5? FinanceTrainer Excel Discussion (Misc queries) 2 December 14th 09 08:27 PM
some cells display formulas, some display values mvivelo Excel Discussion (Misc queries) 1 March 27th 08 10:09 PM
How to display remaining txt file which overflowed MsgBox display? EagleOne Excel Discussion (Misc queries) 1 November 2nd 06 01:10 PM
Display every 3rd category name but still display latest month maryj Charts and Charting in Excel 1 September 24th 06 09:05 PM
Numbers display as decimal, i.e. enter 123 display 1.23 IGH219 Setting up and Configuration of Excel 1 June 16th 05 09:16 PM


All times are GMT +1. The time now is 08:28 AM.

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"