If/Condition Applied to Pictures?

  • Thread starter Thread starter mcl
  • Start date Start date
M

mcl

Is it possible, with Excel 2007 to select a graphic/picture based on a
condition?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top