Macro+graphe

jmboutbout

XLDnaute Nouveau
Bonjour,

jai fait le tracer d'un tir balistique,mais je n'arrive pas animer,je voudrais afficher chaque point un apres l'autre mais je narrive pas.comment faire ?
merci de vos reponses .
 

CB60

XLDnaute Barbatruc
Re : Macro+graphe

Bonsoir
Un morceau de MichelXld et de John Walkenbach,
Regarde si cela peut te faire avancé?
 

Pièces jointes

  • tir balistique.zip
    30.6 KB · Affichages: 206
  • tir balistique.zip
    30.6 KB · Affichages: 197
  • tir balistique.zip
    30.6 KB · Affichages: 200

CB60

XLDnaute Barbatruc
Re : Macro+graphe

Bonjour à tous
Voici quelques modif, si quelqu'un a une idée pour coupler les deux macros, je n'ai pas réussi ( probléme rafraichissement???)
 

Pièces jointes

  • tir balistique.zip
    33.8 KB · Affichages: 171
  • tir balistique.zip
    33.8 KB · Affichages: 169
  • tir balistique.zip
    33.8 KB · Affichages: 173

myDearFriend!

XLDnaute Barbatruc
Re : Macro+graphe

Bonjour jmboutbout, CB60, le Forum,

CB60 à dit:
Bonjour à tous
Voici quelques modif, si quelqu'un a une idée pour coupler les deux macros, je n'ai pas réussi ( probléme rafraichissement???)
Dans le module de code, tu peux remplacer l'ensemble par :
Code:
[COLOR=GRAY][B][I]DANS UN MODULE DE CODE STANDARD[/I][/B][/COLOR]

[COLOR=NAVY]Option Explicit[/COLOR]

[COLOR=NAVY]Sub[/COLOR] AnimateChart()
[COLOR=NAVY]Dim[/COLOR] StartVal [COLOR=NAVY]As Long[/COLOR], r [COLOR=NAVY]As Long[/COLOR]
    Range("depart").Value = "0"
    [COLOR=NAVY]With[/COLOR] ActiveSheet.ChartObjects("Graph1").Chart
        .Axes(xlValue).MinimumScale = Range("k4").Value
        .Axes(xlValue).MaximumScale = Range("k5").Value
        .Axes(xlValue).MinorUnitIsAuto = [COLOR=NAVY]True[/COLOR]
        .Axes(xlCategory).MinimumScale = Range("k7").Value
        .Axes(xlCategory).MaximumScale = Range("k8").Value
        .Axes(xlCategory).MinorUnitIsAuto = [COLOR=NAVY]True
    End With[/COLOR]
    StartVal = Range("depart")
    [COLOR=NAVY]For[/COLOR] r = StartVal [COLOR=NAVY]To[/COLOR] 492 - Range("nbvaleur")
        Range("depart").Value = Range("depart").Value + 1
        DoEvents
    [COLOR=NAVY]Next[/COLOR] r
[COLOR=NAVY]End Sub[/COLOR]
Cordialement,
 

Discussions similaires

Statistiques des forums

Discussions
312 214
Messages
2 086 313
Membres
103 175
dernier inscrit
abcc