Hello there,
I have a range of shape names followed by various values which correspond to the colours which I'd like to assign. I'm having problems piecing together the VBA code in order to update the shapes in one go. My data source is on the sheet named "Data" with the shapes on one called "Shapes" with some example data as such -
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Area[/TD]
[TD]Shape Name[/TD]
[TD]Actual[/TD]
[TD]Budget[/TD]
[TD]Diff[/TD]
[TD]RAG Status[/TD]
[/TR]
[TR]
[TD]East[/TD]
[TD]Freeform1[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Central[/TD]
[TD]Freeform11[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]West[/TD]
[TD]Freeform111[/TD]
[TD]5[/TD]
[TD]10[/TD]
[TD]-5[/TD]
[TD]-1[/TD]
[/TR]
</tbody>[/TABLE]
Potentially I do not need the RAG Status column as I can determine the required colour if the Diff value is positive, zero or negative. I have the recorded macro code to change the colour of an individual shape but now I'm stuck in progressing that to work based on values in another sheet.
Any help is appreciated - thanks.
I have a range of shape names followed by various values which correspond to the colours which I'd like to assign. I'm having problems piecing together the VBA code in order to update the shapes in one go. My data source is on the sheet named "Data" with the shapes on one called "Shapes" with some example data as such -
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Area[/TD]
[TD]Shape Name[/TD]
[TD]Actual[/TD]
[TD]Budget[/TD]
[TD]Diff[/TD]
[TD]RAG Status[/TD]
[/TR]
[TR]
[TD]East[/TD]
[TD]Freeform1[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Central[/TD]
[TD]Freeform11[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]West[/TD]
[TD]Freeform111[/TD]
[TD]5[/TD]
[TD]10[/TD]
[TD]-5[/TD]
[TD]-1[/TD]
[/TR]
</tbody>[/TABLE]
Potentially I do not need the RAG Status column as I can determine the required colour if the Diff value is positive, zero or negative. I have the recorded macro code to change the colour of an individual shape but now I'm stuck in progressing that to work based on values in another sheet.
Any help is appreciated - thanks.