Hi everyone,
I have a problem with VBA that fits the subject of this post and I was hoping someone could help me out with this.
My excelfile has a lot of rows and three columns: the first column represents the name of the object (the objects are all processes), the second column represents the group to which this object is belonging and the thirs column stands for the total number of people working on this process.
So for example I have this part of my excelfile (it's in french and dutch):
[TABLE="width: 1097"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Activiteiten ikv VZW le PAS[/TD]
[TD]Action Sociale[/TD]
[TD="align: right"]0,4[/TD]
[/TR]
[TR]
[TD]Beheer gevonden voorwerpen[/TD]
[TD]Action Sociale[/TD]
[TD="align: right"]0,5[/TD]
[/TR]
[TR]
[TD]Drankleveringen[/TD]
[TD]Action Sociale[/TD]
[TD="align: right"]0,5[/TD]
[/TR]
[TR]
[TD]Hygiene[/TD]
[TD]Action Sociale[/TD]
[TD="align: right"]0,9[/TD]
[/TR]
[TR]
[TD]Maaltijden aan huis[/TD]
[TD]Action Sociale[/TD]
[TD="align: right"]4,0[/TD]
[/TR]
[TR]
[TD]Materiaalleveringen[/TD]
[TD]Action Sociale[/TD]
[TD="align: right"]3,3[/TD]
[/TR]
[TR]
[TD]Pensioenen en gehandicapten[/TD]
[TD]Action Sociale[/TD]
[TD="align: right"]1,9[/TD]
[/TR]
[TR]
[TD]Planning en beheer[/TD]
[TD]Action Sociale[/TD]
[TD="align: right"]3,3[/TD]
[/TR]
[TR]
[TD]Sociale dienst met familiehulp[/TD]
[TD]Action Sociale[/TD]
[TD="align: right"]18,4[/TD]
[/TR]
[TR]
[TD]Tewerkstelling en toelagen[/TD]
[TD]Action Sociale[/TD]
[TD="align: right"]2,5[/TD]
[/TR]
[TR]
[TD]Uitdrijvingen[/TD]
[TD]Action Sociale[/TD]
[TD="align: right"]2,3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Gérer les récupérations de créances.[/TD]
[TD]Affaires juridiques[/TD]
[TD="align: right"]0,4[/TD]
[/TR]
[TR]
[TD]Avis juridiques[/TD]
[TD]Affaires juridiques[/TD]
[TD="align: right"]0,8[/TD]
[/TR]
[TR]
[TD]Elaborer des textes réglementaires communaux[/TD]
[TD]Affaires juridiques[/TD]
[TD="align: right"]0,2[/TD]
[/TR]
[TR]
[TD]Analyser et rédiger des conventions[/TD]
[TD]Affaires juridiques[/TD]
[TD="align: right"]0,1[/TD]
[/TR]
[TR]
[TD]Gérer le contentieux[/TD]
[TD]Affaires juridiques[/TD]
[TD="align: right"]0,7[/TD]
[/TR]
[TR]
[TD]Gérer les réclamations contre les taxes communales[/TD]
[TD]Affaires juridiques[/TD]
[TD="align: right"]0,3[/TD]
[/TR]
</tbody>[/TABLE]
Now I would like to create a code that fits for every row the name in a shape (a small rectangle) and the value in the third column in another small rectangle within the rectangle with the name in it (in the right corner of the bigger rectangle). With the first code in this post I'm able to create every time a rectangle where the name fits in, but I'm not able to alse put the value in the corner of the same rectangle. I tried to create a new shape in favorites in visio. But then he puts three object in this predefined shape.
My second problem is that for every row, I would like to assign a random color to the shapes of the rows that belongs to the same group. So that all the object of the same group would get the same color, but different from the other groups
Could someone help me out with this please?