Thanks for the reply netcepter.
I've actually attached a screenshot of what I'm looking for. The macro to make this happen isn't a concern. If you notice, the example basically gives a visual of the given data. Now when the data gets updated the circles change colors, which isn't the question. Right now, the circles are on top of the cells and not inside. What would be the best way to reference them so I can get a particular dot to change color. So from the attached example, if I wanted to change the color of the circle in G16 from red to green, how should that be done?
Main Topics
Browse All Topics





by: netcepterPosted on 2009-03-23 at 12:48:59ID: 23961554
I'm not really sure what you mean by putting an circle inside the cell. I believe that the shapes are placed "on top of the cell. I created an oval, from the drawing tool bar, and created the macro below based on Cell B2 equaling "1" then turning the oval red. It worked. Not sure if this is what you want or not.
ForeColor. SchemeColo r = 10 Visible = msoTrue Solid
net
Sub Macro1()
'test to see if oval turns red
Range("F12").Select
If Range("B2") = "1" Then
ActiveSheet.Shapes("Oval 1").Select
Selection.ShapeRange.Fill.
Selection.ShapeRange.Fill.
Selection.ShapeRange.Fill.
End If
End Sub