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 :

[VBA Excel] Problème : Procédure trop grande


Sujet :

Macros et VBA Excel

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Homme Profil pro
    Ingénieur Supply Chain
    Inscrit en
    Février 2018
    Messages
    49
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Ingénieur Supply Chain
    Secteur : Industrie

    Informations forums :
    Inscription : Février 2018
    Messages : 49
    Par défaut [VBA Excel] Problème : Procédure trop grande
    Bonjour les amis,

    Comme étant débutant sur VBA, je mène un projet qui permettra de gérer un stock avec une centaine de référence.
    J'ai essayé de faire les choses comme je les ait compris.
    Donc le fichier il essaye de faire la somme des quantités commandés par les clients pour te montrer est ce que t'en a assez de stock en matières premières pour préparer tes commandes, et selon des critères (Le mois d'exécution, la référence choisie par l'utilisateur...).

    J'ai réalisé se code qui permettra de faire cela, et sa marche très bien :

    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
    Dim Réf As String
     
    Réf = Worksheets("STOCKS").Range("B15").Text
     
    If Worksheets("STOCKS").Range("B15").Text = Réf Then
     
    Worksheets("STOCKS").Range("C18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("C16"))
    Worksheets("STOCKS").Range("D18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("D16"))
    Worksheets("STOCKS").Range("E18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("E16"))
    Worksheets("STOCKS").Range("F18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("F16"))
    Worksheets("STOCKS").Range("G18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("G16"))
    Worksheets("STOCKS").Range("H18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("H16"))
    Worksheets("STOCKS").Range("I18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("I16"))
    Worksheets("STOCKS").Range("J18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("J16"))
    Worksheets("STOCKS").Range("K18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("K16"))
    Worksheets("STOCKS").Range("L18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("L16"))
    Worksheets("STOCKS").Range("M18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("M16"))
    Worksheets("STOCKS").Range("N18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("N16"))
    End If
    Par la suite, parmi ces centaines de références, j'ai quelques références qui représentent le même produit.
    Exemple :
    Réf Quantité
    0100 50
    0200 20
    0110 30

    Donc les références 0100 et 0110 représentent le même produit, et quand l'utilisateur choisit la référence 0100 ou bien la 0110, je veux que le programme fait la somme des quantités des deux références (Dans notre exemple faut avoir le résultat suivant : 80)
    J'ai réalisé un code qui permet de faire cela mais je l'ai fait pour chaque cas, sachant que j'en ai 16 cas différents en plus du cas que j'ai mis juste avant.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    If Worksheets("STOCKS").Range("B15").Text = "0100" Or Worksheets("STOCKS").Range("B15").Text = "0110" Then
    Worksheets("STOCKS").Range("C18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("C16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("C16"))
    Worksheets("STOCKS").Range("D18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("D16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("D16"))
    Worksheets("STOCKS").Range("E18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("E16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("E16"))
    Worksheets("STOCKS").Range("F18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("F16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("F16"))
    Worksheets("STOCKS").Range("G18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("G16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("G16"))
    Worksheets("STOCKS").Range("H18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("H16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("H16"))
    Worksheets("STOCKS").Range("I18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("I16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("I16"))
    Worksheets("STOCKS").Range("J18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("J16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("J16"))
    Worksheets("STOCKS").Range("K18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("K16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("K16"))
    Worksheets("STOCKS").Range("L18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("L16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("L16"))
    Worksheets("STOCKS").Range("M18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("M16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("M16"))
    Worksheets("STOCKS").Range("N18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0100", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("N16")) + Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), "0110", Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("N16"))
    End If
    Comment puis-je faire pour diminuer de mon programme pour qu'il ne soit pas lourd.

    Je vous remercie.

  2. #2
    Expert confirmé
    Homme Profil pro
    Responsable des études
    Inscrit en
    Juillet 2014
    Messages
    2 680
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Aude (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Responsable des études
    Secteur : Santé

    Informations forums :
    Inscription : Juillet 2014
    Messages : 2 680
    Par défaut
    Bonjour,

    Plutôt que range("C18") tu peux écrire cells(18,3) et donc boucler pour remplacer:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
    Worksheets("STOCKS").Range("C18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("C16"))
    Worksheets("STOCKS").Range("D18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("D16"))
    Worksheets("STOCKS").Range("E18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("E16"))
    Worksheets("STOCKS").Range("F18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("F16"))
    Worksheets("STOCKS").Range("G18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("G16"))
    Worksheets("STOCKS").Range("H18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("H16"))
    Worksheets("STOCKS").Range("I18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("I16"))
    Worksheets("STOCKS").Range("J18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("J16"))
    Worksheets("STOCKS").Range("K18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("K16"))
    Worksheets("STOCKS").Range("L18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("L16"))
    Worksheets("STOCKS").Range("M18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("M16"))
    Worksheets("STOCKS").Range("N18").Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").Range("N16"))
    par
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    for i = 3 to 14 'pas sur du 14 flemme de compter
    Worksheets("STOCKS").cells(18,i).Value = Application.WorksheetFunction.SumIfs(Worksheets("COMMANDES").Range("J11:J65535"), Worksheets("COMMANDES").Range("B11:B65535"), Worksheets("STOCKS").Range("B15"), Worksheets("COMMANDES").Range("L11:L65535"), Worksheets("STOCKS").cells(16,i))
    next i

  3. #3
    Expert confirmé
    Homme Profil pro
    aucune
    Inscrit en
    Avril 2016
    Messages
    7 563
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 84
    Localisation : France, Pyrénées Atlantiques (Aquitaine)

    Informations professionnelles :
    Activité : aucune

    Informations forums :
    Inscription : Avril 2016
    Messages : 7 563
    Par défaut
    Bonjour
    Utiliser des "blocs with" (lire la rubrique With, instruction dans ton aide interne VBA)
    ET
    utiliser des procédures paramétrées, appelables en tant que de besoin

  4. #4
    Membre averti
    Homme Profil pro
    Ingénieur Supply Chain
    Inscrit en
    Février 2018
    Messages
    49
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Ingénieur Supply Chain
    Secteur : Industrie

    Informations forums :
    Inscription : Février 2018
    Messages : 49
    Par défaut
    Merci beaucoup, ça marche nickel.
    Je clôture la discussion.

  5. #5
    Rédacteur/Modérateur


    Homme Profil pro
    Formateur et développeur chez EXCELLEZ.net
    Inscrit en
    Novembre 2003
    Messages
    19 125
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 58
    Localisation : Belgique

    Informations professionnelles :
    Activité : Formateur et développeur chez EXCELLEZ.net
    Secteur : Enseignement

    Informations forums :
    Inscription : Novembre 2003
    Messages : 19 125
    Billets dans le blog
    131
    Par défaut
    Salut.

    Il y a déjà moyen de faire pas mal de choses sans une ligne de code en utilisant:
    • les tableaux structurés(*);
    • des tables de correspondances pour regrouper les références différentes pointant sur un même article;
    • les tableaux croisés dynamiques qui vont avec.



    Utiliser des fonctions qui prennent qui plongent sur la ligne 65535 n'est pas une bonne idée.

    (*) Pourrais-tu préciser ta version d'Excel?
    "Plus les hommes seront éclairés, plus ils seront libres" (Voltaire)
    ---------------
    Mes billets de blog sur DVP
    Mes remarques et critiques sont purement techniques. Ne les prenez jamais pour des attaques personnelles...
    Pensez à utiliser les tableaux structurés. Ils vous simplifieront la vie, tant en Excel qu'en VBA ==> mon tuto
    Le VBA ne palliera jamais une mauvaise conception de classeur ou un manque de connaissances des outils natifs d'Excel...
    Ce ne sont pas des bonnes pratiques parce que ce sont les miennes, ce sont les miennes parce que ce sont des bonnes pratiques
    VBA pour Excel? Pensez D'ABORD en EXCEL avant de penser en VBA...
    ---------------

  6. #6
    Membre extrêmement actif Avatar de mjpmjp
    Homme Profil pro
    Retraité
    Inscrit en
    Avril 2012
    Messages
    1 133
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hautes Alpes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Retraité
    Secteur : Santé

    Informations forums :
    Inscription : Avril 2012
    Messages : 1 133
    Par défaut
    Bonjour,
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
    Public Sub Action()
        Set Ws1 = Worksheets("STOCKS")
        Set Ws2 = Worksheets("COMMANDES")
        Set Plg1 = Worksheets("COMMANDES").Range("J11:J65535")
        Set Plg2 = Worksheets("COMMANDES").Range("B11:B65535")
        Set Plg3 = Worksheets("COMMANDES").Range("L11:L65535")
        If Worksheets("STOCKS").Range("B15").Text = "0100" Or Worksheets("STOCKS").Range("B15").Text = "0110" Then
            For i = 3 To 14
                Ws1.Cells(18, i).Value = Application.WorksheetFunction.SumIfs(Plg1, Plg2, Ws1.Range("B15"), Plg3, Ws1.Cells(16, i))
            Next i
        End If
    End Sub
    @+JP
    Caractéristiques (WEB) phpMyAdmin 4-74 , PHP 5-631 , Apache 2-427 , MySQL 5-719
    Présentation NAS DS-3615xs + 20Go , DSM 6.1.6-15266 Up1 , 12 * WD 4To WD4000F9YZ (10 raid 6+ )+(2 raid 1+) , LinkSys comutateur-switch lgs528p-eu , Onduleur UPS 720W Power Boxx Lcd (4*UPS + 4*MOD)
    Mes contributions (EXCEL) Form GRAPHIQUE: Gestion des boutons , Liste Onglet dynamique...GESTION de FILM

  7. #7
    Expert éminent
    Avatar de Marc-L
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2013
    Messages
    9 468
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2013
    Messages : 9 468
    Par défaut
    Bonjour,

    et ne pas oublier de libérer toute variable objet en fin de procédure via Nothing !

    ___________________________________________________________________________________________________________
    Je suis Paris, Egypte, Nigeria, New-York, Mogadicio, Barcelone, London, Manchester, Stockholm, Istanbul, Berlin, Nice, Bruxelles, Charlie, …

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

Discussions similaires

  1. Problème simplification de code VBA - Procédure trop grande
    Par Eleanor dans le forum Macros et VBA Excel
    Réponses: 6
    Dernier message: 05/08/2013, 10h52
  2. [VBA Excel]Nombre hexa trop grand ?
    Par rtg57 dans le forum Macros et VBA Excel
    Réponses: 25
    Dernier message: 09/12/2008, 07h42
  3. VBA Excel - Problème de password VBA
    Par sat478 dans le forum VBA Word
    Réponses: 5
    Dernier message: 11/01/2006, 17h38
  4. [VBA EXCEL] Problème d'éxécution avec graphiques
    Par RedBurn dans le forum Macros et VBA Excel
    Réponses: 4
    Dernier message: 28/11/2005, 09h55
  5. [VBA Excel] problème de range avec find
    Par loacast dans le forum Macros et VBA Excel
    Réponses: 6
    Dernier message: 23/11/2005, 13h56

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