Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2617 connectés 

  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  [VBA EXCEL 03] Probleme de mise en forme auto du graph

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[VBA EXCEL 03] Probleme de mise en forme auto du graph

n°1269699
sakuraba
Posté le 19-12-2005 à 09:06:22  profilanswer
 

bonjour,
 
voila ce que j'ai fait  
http://img465.imageshack.us/img465/4893/untitled2copy1vu.th.jpg
 
mais j'ai des problemes pour centrer les cadres auto et on voit pas trop les pourcentages des secteurs
 
voici mon code  
 

Code :
  1. Sub CreaGraphiq5()
  2.     Charts.Add
  3.     ActiveChart.ChartType = xl3DPieExploded
  4.     ActiveChart.SetSourceData Source:=Sheets("RECAPITULATIF" ).Range( _
  5.         "A67:A77,AN67:AN77" ), PlotBy:=xlColumns
  6.     ActiveChart.Location Where:=xlLocationAsObject, Name:="RECAPITULATIF"
  7.     With ActiveChart
  8.         .HasTitle = True
  9.         .ChartTitle.Characters.Text = "Total des charges sociales"
  10.         .ApplyDataLabels AutoText:=True, LegendKey:=True, _
  11.         HasLeaderLines:=True, ShowSeriesName:=False, ShowCategoryName:=False, _
  12.         ShowValue:=False, ShowPercentage:=True, ShowBubbleSize:=False
  13.     End With
  14.    
  15.     ActiveChart.HasLegend = True
  16.     ActiveChart.Legend.Select
  17.     Selection.Position = xlBottom
  18.   Selection.AutoScaleFont = True
  19.       ActiveChart.Legend.Select
  20.     Selection.Left = 250
  21.     Selection.Top = 250
  22.     Selection.Width = 400
  23.     Selection.Height = 200
  24. End Sub

mood
Publicité
Posté le 19-12-2005 à 09:06:22  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  [VBA EXCEL 03] Probleme de mise en forme auto du graph

 

Sujets relatifs
Problème execution VB Script en ASPProblème d'écriture dans un fichier
VB 6 / Probleme EOFProbleme HTML Aide !!!
Insertion de données excel dans une tableprobleme requete REGEXP
PHP-SQL Problème avec REGEXPMise à jour BDD toutes les semaines
Problème avec preg_replace ...problème jeu du pendu en PHP
Plus de sujets relatifs à : [VBA EXCEL 03] Probleme de mise en forme auto du graph


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR