Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

mise en forme des tâches

2 réponses
Avatar
brucat
Bonjour,

J'aimerai via VBA que les taches de niveau 1 soit en couleur selon le
colorie indiqué dans le champ Number 1 mais pour tout mon projet.

Voici mon code comment l'adapter pour tout le projet.

Sub chgt()

Dim oTache As Task

For Each oTache In ActiveSelection.Tasks

If oTache.Summary And oTache.OutlineLevel = 1 Then
SelectRow
Font Color:=oTache.Number1
End If

Next oTache

End Sub



Merci.

2 réponses

Avatar
Gérard Ducouret
Bonjour Brucat,
Essaie cela :

Sub chgt()
Dim oTache As Task, i As Integer
For Each oTache In ActiveProject.Tasks
i = i + 1
If oTache.Summary And oTache.OutlineLevel = 1 Then
SelectRow row:=i, RowRelative:úlse
Font Color:=oTache.Number1
End If
Next oTache
End Sub



"brucat" a écrit dans le message de
news:djh15b$f1d$
Bonjour,

J'aimerai via VBA que les taches de niveau 1 soit en couleur selon le
colorie indiqué dans le champ Number 1 mais pour tout mon projet.

Voici mon code comment l'adapter pour tout le projet.

Sub chgt()

Dim oTache As Task

For Each oTache In ActiveSelection.Tasks

If oTache.Summary And oTache.OutlineLevel = 1 Then
SelectRow
Font Color:=oTache.Number1
End If

Next oTache

End Sub



Merci.






Avatar
brucat
merci
c'est super

"Gérard Ducouret" a écrit dans le message
de news:
Bonjour Brucat,
Essaie cela :

Sub chgt()
Dim oTache As Task, i As Integer
For Each oTache In ActiveProject.Tasks
i = i + 1
If oTache.Summary And oTache.OutlineLevel = 1 Then
SelectRow row:=i, RowRelative:úlse
Font Color:=oTache.Number1
End If
Next oTache
End Sub



"brucat" a écrit dans le message de
news:djh15b$f1d$
Bonjour,

J'aimerai via VBA que les taches de niveau 1 soit en couleur selon le
colorie indiqué dans le champ Number 1 mais pour tout mon projet.

Voici mon code comment l'adapter pour tout le projet.

Sub chgt()

Dim oTache As Task

For Each oTache In ActiveSelection.Tasks

If oTache.Summary And oTache.OutlineLevel = 1 Then
SelectRow
Font Color:=oTache.Number1
End If

Next oTache

End Sub



Merci.