IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Macros et VBA Excel Discussion :

Masquer graphique pendant execution


Sujet :

Macros et VBA Excel

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé Avatar de Nono Sto
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    350
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 350
    Par défaut Masquer graphique pendant execution
    Chères amies, chers amis du forum

    Je souhaite masqué mon graphique pendant l'execution de la macro mais je ne sais pas comment faire.

    Je subodore un application.visible = false ou quelque chose dans le genre mais je ne connais pas la syntaxe exact à appliquer pour un graphe.

    Voici le code de la création du graphe.
    Merci
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    RangeData.Select
     
    Set MonGraphe = ThisWorkbook.Charts.Add
     
    MonGraphe.ChartType = xlLineMarkers
    MonGraphe.Location xlLocationAsObject, "Data"
     
    m = 1
     
        With ActiveChart
     
            .PlotArea.Interior.ColorIndex = 2
            .PlotArea.Border.LineStyle = xlNone
     
            .HasTitle = True
            .ChartTitle.Characters.Text = "Evolution des cours"
            .ChartTitle.Font.Name = "Arial Narrow"
            .ChartTitle.Font.Size = 15
            .ChartTitle.Font.Bold = True
            .ChartTitle.Font.Italic = True
     
            .Axes(xlCategory).HasTitle = True
            .Axes(xlCategory).AxisTitle.Characters.Text = "Dates"
            .Axes(xlCategory).AxisTitle.Font.Name = "Arial Narrow"
            .Axes(xlCategory).AxisTitle.Font.Size = 10
            .Axes(xlCategory).AxisTitle.Font.Bold = True
            .Axes(xlCategory).AxisTitle.Font.Italic = True
     
            .Axes(xlValue).HasTitle = True
            .Axes(xlValue).AxisTitle.Characters.Text = "Cours"
            .Axes(xlValue).AxisTitle.Font.Name = "Arial Narrow"
            .Axes(xlValue).AxisTitle.Font.Size = 10
            .Axes(xlValue).AxisTitle.Font.Bold = True
            .Axes(xlValue).AxisTitle.Font.Italic = True
     
            .Axes(xlValue).HasMajorGridlines = True
            .Axes(xlCategory).HasMajorGridlines = True
            .Axes(xlValue).MajorGridlines.Border.LineStyle = xlDot
            .Axes(xlCategory).MajorGridlines.Border.LineStyle = xlDot
     
            .Axes(xlValue).TickLabels.Font.Name = "Arial Narrow"
            .Axes(xlValue).TickLabels.Font.Size = 7
     
            .Axes(xlCategory).TickLabels.Font.Name = "Arial Narrow"
            .Axes(xlCategory).TickLabels.Font.Size = 7
            .Axes(xlCategory).TickLabels.NumberFormat = "d/m/yy;@"
     
            .Axes(xlValue).MinimumScaleIsAuto = True
            .Axes(xlValue).MaximumScaleIsAuto = True
     
            .Legend.Font.Name = "Arial Narrow"
            .Legend.Font.Size = 5
            .Legend.Border.LineStyle = xlNone
     
            color = 51
     
        l = 0
            For Each MesSeries In .SeriesCollection
                    If Tab_(l) = "CAC 40" Then
                        MesSeries.AxisGroup = 2
                        MesSeries.Border.ColorIndex = 3
                        MesSeries.Border.Weight = xlThick
                        MesSeries.MarkerStyle = xlMarkerStyleSquare
                        MesSeries.MarkerBackgroundColorIndex = 3
                        MesSeries.MarkerForegroundColorIndex = 3
                        MesSeries.MarkerSize = 2
                        MesSeries.Name = Tab_(l)
                        .Axes(xlValue, xlSecondary).HasTitle = True
                        .Axes(xlValue, xlSecondary).AxisTitle.Characters.Text = "CAC 40"
                        .Axes(xlValue, xlSecondary).AxisTitle.Font.Name = "Arial Narrow"
                        .Axes(xlValue, xlSecondary).TickLabels.Font.Name = "Arial Narrow"
                        .Axes(xlValue, xlSecondary).TickLabels.Font.Size = 7
                        .Axes(xlValue, xlSecondary).AxisTitle.Font.Size = 10
                        .Axes(xlValue, xlSecondary).AxisTitle.Font.Bold = True
                        .Axes(xlValue, xlSecondary).AxisTitle.Font.Italic = True
                    Else
                        color = color - 1
                        MesSeries.Border.ColorIndex = color
                        MesSeries.Border.Weight = xlThick
                        MesSeries.MarkerStyle = xlMarkerStyleSquare
                        MesSeries.MarkerBackgroundColorIndex = color
                        MesSeries.MarkerForegroundColorIndex = color
                        MesSeries.MarkerSize = 2
                        MesSeries.Name = Tab_(l)
                    End If
                m = m + 1
                l = l + 1
         Next MesSeries
     
        End With

  2. #2
    Expert éminent Avatar de mercatog
    Homme Profil pro
    Inscrit en
    Juillet 2008
    Messages
    9 435
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Autre

    Informations forums :
    Inscription : Juillet 2008
    Messages : 9 435
    Par défaut
    Ajoute en début de code
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    application.screenupdating=false
    De ce fait le rafraichissement visuel de ta feuille ne sera plus visible

  3. #3
    Membre éclairé Avatar de Nono Sto
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    350
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 350
    Par défaut
    Merci pour ton aide

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. masquer le terminal pendant execution script shell ?
    Par narcis60floyjo dans le forum Linux
    Réponses: 7
    Dernier message: 22/04/2009, 11h10
  2. Plantage graphique pendant jeux
    Par DiabloZizi dans le forum Composants
    Réponses: 9
    Dernier message: 29/10/2007, 14h13
  3. Message pendant execution d'un Report
    Par Laye dans le forum Oracle
    Réponses: 8
    Dernier message: 25/07/2007, 19h04
  4. Réponses: 4
    Dernier message: 03/08/2006, 17h23
  5. [Jar]liste ressources d'un jar pendant execution
    Par maxidoove dans le forum Général Java
    Réponses: 4
    Dernier message: 10/05/2004, 17h36

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo