Hi,
With Debra Dalgleish method, which is one of the suggestions which I
mentioned in my first email, does not really hide the chart. It still exists
as an object on the screen. So it can still be selected, deleted or moved.
And as done in the example, it can still be seen.
The sample provide by François L, which was my other suggestion, fails not
because the idea is incorrect, but simply because the chart name is "Chart 1"
not "Graphique 1".
You can use the following code:
Private Sub Worksheet_Change(ByVal Target As Range)
If [PickList] = "Day1" Then
ChartObjects("Chart 1").Visible = False
Else
ChartObjects("Chart 1").Visible = True
End If
End Sub
Here PickList is the range name of the cell where you enter your Day value.
You can use a Data, Validation drop down list or you can just type the day
into the cell. The Data Validation method is safer because if you type Day 1
it will not work because the spelling doesn't match Day1.
Very interesting that my two suggestions both generated a new web page on
the internet showing my solutions, both with files dated 1/21/2007!