VBA,graphique boursier
Résolu/Fermé
sabouna_d
Messages postés
20
Date d'inscription
mercredi 2 juillet 2008
Statut
Membre
Dernière intervention
24 juillet 2008
-
23 juil. 2008 à 10:53
sabouna_d Messages postés 20 Date d'inscription mercredi 2 juillet 2008 Statut Membre Dernière intervention 24 juillet 2008 - 24 juil. 2008 à 10:45
sabouna_d Messages postés 20 Date d'inscription mercredi 2 juillet 2008 Statut Membre Dernière intervention 24 juillet 2008 - 24 juil. 2008 à 10:45
A voir également:
- VBA,graphique boursier
- Changer carte graphique - Guide
- Graphique excel - Guide
- Graphique sparkline - Guide
- Erreur 1004 vba ✓ - Forum VB / VBA
- Vba ouvrir un fichier excel avec chemin ✓ - Forum VB / VBA
2 réponses
roros
Messages postés
37
Date d'inscription
lundi 16 juin 2008
Statut
Membre
Dernière intervention
5 mai 2009
24 juil. 2008 à 10:09
24 juil. 2008 à 10:09
essaie ce code
with mafeuille
Set PlageDonnees = .Range(.Cells(9, 6), .Cells(9, 6).End(xlDown)).Resize(, 3) 'ici tu l'adapte à ta plage de données
Set plagegraphique = .Range("F20:l35")
Set mongraphe = .ChartObjects.Add(plagegraphique.Left, plagegraphique.Top, plagegraphique.Width, plagegraphique.Height).Chart
PlageDonnees.Copy
mongraphe.Paste
mongraphe.ChartType = xlStockHLC
NbGraph = mafeuille.ChartObjects.Count
mafeuille.ChartObjects(NbGraph).Name = "fonction"
With ActiveChart
mongraphe.HasTitle = True
mongraphe.ChartTitle.Characters.Text = "nom_graphe"
End With
with mafeuille
Set PlageDonnees = .Range(.Cells(9, 6), .Cells(9, 6).End(xlDown)).Resize(, 3) 'ici tu l'adapte à ta plage de données
Set plagegraphique = .Range("F20:l35")
Set mongraphe = .ChartObjects.Add(plagegraphique.Left, plagegraphique.Top, plagegraphique.Width, plagegraphique.Height).Chart
PlageDonnees.Copy
mongraphe.Paste
mongraphe.ChartType = xlStockHLC
NbGraph = mafeuille.ChartObjects.Count
mafeuille.ChartObjects(NbGraph).Name = "fonction"
With ActiveChart
mongraphe.HasTitle = True
mongraphe.ChartTitle.Characters.Text = "nom_graphe"
End With
sabouna_d
Messages postés
20
Date d'inscription
mercredi 2 juillet 2008
Statut
Membre
Dernière intervention
24 juillet 2008
1
24 juil. 2008 à 10:45
24 juil. 2008 à 10:45
Merci roros ca marche!!!!!