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

Lancer une macro quand on clique sur un affichage

Aucune réponse
Avatar
the-rain-drops
Bonjour,
Ayant obtenu le code pour effectuer une macro permettant de griser une tâche à 100%,

Dim oTache As Task
For Each oTache In ActiveProject.Tasks
If Not oTache Is Nothing Then
If oTache.PercentComplete = 100 Then
SelectRow Row:=oTache.ID, RowRelative:=False
FontEx CellColor:=14
End If
End If
Next oTache

j'aimerais lancer cette même macro à chaque changement d'affiche dans mon projet (car cette macro ne fonctionne que dans un seul affichage). Seulement je n'y arrive pas ("si on change clique sur l'affiche XXX, alors lancer la macro XXX)

Merci de votre aide

Alexandre

Réponses