Position Graphique VBA
Résolu/Fermé
A voir également:
- Position Graphique VBA
- Changer carte graphique - Guide
- Ma position - Guide
- Position gps - Guide
- Graphique excel - Guide
- Partage de position whatsapp - Guide
2 réponses
lermite222
Messages postés
8724
Date d'inscription
dimanche 8 avril 2007
Statut
Contributeur
Dernière intervention
22 janvier 2020
1 190
Modifié par lermite222 le 4/05/2010 à 17:26
Modifié par lermite222 le 4/05/2010 à 17:26
Bonjour,
Tu ne doit pas positionner par rapport à une cellule mais avec des références aux bords de la feuille.
A+
L'expérience instruit plus sûrement que le conseil. (André Gide)
Si tu te cogne à un pot et que ça sonne creux, c'est pas forcément le pot qui est vide. ;-)(Confucius)
Tu ne doit pas positionner par rapport à une cellule mais avec des références aux bords de la feuille.
ActiveSheet.Shapes("Graphique 1").Left = 100 ActiveSheet.Shapes("Graphique 1").Top = 20
A+
L'expérience instruit plus sûrement que le conseil. (André Gide)
Si tu te cogne à un pot et que ça sonne creux, c'est pas forcément le pot qui est vide. ;-)(Confucius)
lermite222
Messages postés
8724
Date d'inscription
dimanche 8 avril 2007
Statut
Contributeur
Dernière intervention
22 janvier 2020
1 190
4 mai 2010 à 20:36
4 mai 2010 à 20:36
Tu a probablement un On Error quelque part parce que la ligne..
Gérnère l'erreur 1004
Faut remplacer par
Cher moi ça fonctionne comme ça !
A+
With Sheets("Fiche Agence").ChartObjects("CA-Epargne")
Gérnère l'erreur 1004
Faut remplacer par
With Sheets("Fiche Agence").ChartObjects(nbgraph )
Cher moi ça fonctionne comme ça !
A+
4 mai 2010 à 17:34
Mon problème est que lorsque j'execute le deuxième graphique, c'est le premier qui va dans la cellule D79 alors que ça devrait être le second ...