Thread: excel and fun?
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Ken Johnson Ken Johnson is offline
external usenet poster
 
Posts: 1,073
Default excel and fun?

The code for Q2 can be simplified to...

Private Sub Worksheet_Calculate()
Const TargetValue As Single = 100
Me.Shapes("Sad").Visible = Range("A1").Value < TargetValue
Me.Shapes("Happy").Visible = Not Me.Shapes("Sad").Visible
End Sub

Ken Johnson