Ciao!
I need your help! It is two or three days I'm looking for a solution...
Background: I have a sheet with a same picture 3 times. the picture is a grouping of a lot of shapes, it represents the world map, so each shape it is called with the name of the country (e.g. Russia, USA, Italy...).
Now, what I need to do is to color some countries according to a value in a cell.
This code works, but only if I have only one picture!
I need something to indicate "which"
I want to color, if it is the "china" of group 1, group2 or group 3...
Is there any solution?!?!!?
THANK YOU!!!
I need your help! It is two or three days I'm looking for a solution...
Background: I have a sheet with a same picture 3 times. the picture is a grouping of a lot of shapes, it represents the world map, so each shape it is called with the name of the country (e.g. Russia, USA, Italy...).
Now, what I need to do is to color some countries according to a value in a cell.
This code works, but only if I have only one picture!
Code:
Sub color()
With ActiveSheet
With .Shapes("china").Fill.ForeColor
.SchemeColor = 15
End With
End With
End Sub
I need something to indicate "which"
Code:
.Shapes("china")
Is there any solution?!?!!?
THANK YOU!!!