If/Condition Applied to Pictures?

  • Thread starter Thread starter mcl
  • Start date Start date
mcl said:
Is it possible, with Excel 2007 to select a graphic/picture based on a
condition?


Sub Macro1()
'
'
If Cells(1, 1).Value > 1 Then
ActiveSheet.Shapes("Rectangle 3").Select
Else
ActiveSheet.Shapes("Oval 4").Select
End If

End Sub
 
Back
Top