Bonjour ET,
Donc j'ai fais les changements et ça marche très bien. Néanmoins quand je veux appliquer cela sur mon fichier j'ai le problème suivant: Erreur de compilation, Nom amlbigu détecté: ~
C'est certainement parce que il y a une autre macro sur la feuille mais je ne sais pas résoudre le souci (deux worksheet_change sur une même feuille ?)
Dans le module:
Sub AXE_VERTICALE()
ActiveSheet.ChartObjects("Graphique 20").Activate 'Référence graphique
ActiveChart.Axes(xlValue).Select
With ActiveChart.Axes(xlValue)
.MinimumScale = Range("e30").Value 'valeur en Ae30
End With
End Sub
Et sur la feuille du graphe:
Private Sub Worksheet_Change(ByVal Target As Range)
Call Masque_lig
End Sub
Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
ActiveSheet.ChartObjects("Graphique 20").Activate 'Référence graphique
ActiveChart.Axes(xlValue).Select
With ActiveChart.Axes(xlValue)
.MinimumScale = Range("e30").Value 'valeur en A1
End With
End If
End Sub
Merci pour tes réponses, et merci d'avance pour celles qui vont suivre
Garmin.