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 :

Userform procedure too large


Sujet :

Macros et VBA Excel

  1. #1
    Nouveau membre du Club
    Homme Profil pro
    controleur gestion
    Inscrit en
    Novembre 2014
    Messages
    53
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Croatie

    Informations professionnelles :
    Activité : controleur gestion

    Informations forums :
    Inscription : Novembre 2014
    Messages : 53
    Points : 25
    Points
    25
    Par défaut Userform procedure too large
    Bonjour,

    J ai un userform dans lequel les utilisateurs doivent rentrer des donnees par mois et categories. Cela represente 120 linges que je dois ensuite integrer dans une feuille excel. Lorsque je cree le code, j ai un message d erreur Procedure too large

    Dans le userform, certains parametres sont fixes et d autres varient (le mois, la categorie, etc). Je ne sais pas comment reduire ce code (soit le couper en plusieurs modules soit faire une boucle).
    Dans les deux cas je ne sais pas comment proceder pour integrer dans un module les parametres du userform.

    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
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    Private Sub CommandButton1_Click()
     
    Set WS = ActiveWorkbook.Sheets("COMPASS Extraction")
     
    LR = WS.Range("A950000").End(xlUp).Row
     
     
    WS.Cells(LR + 1, 1).Value = Label30.Caption                                  'column A'
    WS.Cells(LR + 1, 5).Value = ComboBox2.Value                             'column E'
    WS.Cells(LR + 1, 8).Value = ComboBox3.Value
    WS.Cells(LR + 1, 10).Value = ComboBox5.Value                                 'column J'
    WS.Cells(LR + 1, 7).Value = ComboBox6.Value                                  'column G'
    WS.Cells(LR + 1, 4).Value = ComboBox1.Value                                'column D'
    WS.Cells(LR + 1, 9).Value = ComboBox4.Value                                      'column I'
     
    WS.Cells(LR + 1, 2).Value = Label16.Caption                                     'column B'
    WS.Cells(LR + 1, 11).Value = TextBox1.Text                                   'column K'
     
     
    WS.Cells(LR + 2, 1).Value = Label30.Caption                                  'column A'
    WS.Cells(LR + 2, 5).Value = ComboBox2.Value                             'column E'
    WS.Cells(LR + 2, 8).Value = ComboBox3.Value
    WS.Cells(LR + 2, 10).Value = ComboBox5.Value                                 'column J'
    WS.Cells(LR + 2, 7).Value = ComboBox6.Value                                  'column G'
    WS.Cells(LR + 2, 4).Value = ComboBox1.Value                                'column D'
    WS.Cells(LR + 2, 9).Value = ComboBox4.Value                                      'column I'
     
    WS.Cells(LR + 2, 2).Value = Label17.Caption                                     'column B'
    WS.Cells(LR + 2, 11).Value = TextBox2.Text                                   'column K'
     
     
    WS.Cells(LR + 3, 1).Value = Label30.Caption                                  'column A'
    WS.Cells(LR + 3, 5).Value = ComboBox2.Value                             'column E'
    WS.Cells(LR + 3, 8).Value = ComboBox3.Value
    WS.Cells(LR + 3, 10).Value = ComboBox5.Value                                 'column J'
    WS.Cells(LR + 3, 7).Value = ComboBox6.Value                                  'column G'
    WS.Cells(LR + 3, 4).Value = ComboBox1.Value                                'column D'
    WS.Cells(LR + 3, 9).Value = ComboBox4.Value                                      'column I'
     
    WS.Cells(LR + 3, 2).Value = Label18.Caption                                       'column B'
    WS.Cells(LR + 3, 11).Value = TextBox3.Text                                   'column K'
     
     
    WS.Cells(LR + 4, 1).Value = Label30.Caption                                  'column A'
    WS.Cells(LR + 4, 5).Value = ComboBox2.Value                             'column E'
    WS.Cells(LR + 4, 8).Value = ComboBox3.Value
    WS.Cells(LR + 4, 10).Value = ComboBox5.Value                                 'column J'
    WS.Cells(LR + 4, 7).Value = ComboBox6.Value                                  'column G'
    WS.Cells(LR + 4, 4).Value = ComboBox1.Value                                'column D'
    WS.Cells(LR + 4, 9).Value = ComboBox4.Value                                      'column I'
     
    WS.Cells(LR + 4, 2).Value = Label19.Caption                                       'column B'
    WS.Cells(LR + 4, 11).Value = TextBox4.Text                                   'column K'
     
     
     WS.Cells(LR + 5, 1).Value = Label30.Caption                                  'column A'
    WS.Cells(LR + 5, 5).Value = ComboBox2.Value                             'column E'
    WS.Cells(LR + 5, 8).Value = ComboBox3.Value
    WS.Cells(LR + 5, 10).Value = ComboBox5.Value                                 'column J'
    WS.Cells(LR + 5, 7).Value = ComboBox6.Value                                  'column G'
    WS.Cells(LR + 5, 4).Value = ComboBox1.Value                                'column D'
    WS.Cells(LR + 5, 9).Value = ComboBox4.Value                                      'column I'
     
    WS.Cells(LR + 5, 2).Value = Label20.Caption                                       'column B'
    WS.Cells(LR + 5, 11).Value = TextBox5.Text                                   'column K'
     
     
    WS.Cells(LR + 6, 1).Value = Label30.Caption                                  'column A'
    WS.Cells(LR + 6, 5).Value = ComboBox2.Value                             'column E'
    WS.Cells(LR + 6, 8).Value = ComboBox3.Value
    WS.Cells(LR + 6, 10).Value = ComboBox5.Value                                 'column J'
    WS.Cells(LR + 6, 7).Value = ComboBox6.Value                                  'column G'
    WS.Cells(LR + 6, 4).Value = ComboBox1.Value                                'column D'
    WS.Cells(LR + 6, 9).Value = ComboBox4.Value                                      'column I'
     
    WS.Cells(LR + 6, 2).Value = Label21.Caption                                       'column B'
    WS.Cells(LR + 6, 11).Value = TextBox6.Text                                   'column K'
     
    WS.Cells(LR + 7, 1).Value = Label30.Caption                                  'column A'
    WS.Cells(LR + 7, 5).Value = ComboBox2.Value                             'column E'
    WS.Cells(LR + 7, 8).Value = ComboBox3.Value
    WS.Cells(LR + 7, 10).Value = ComboBox5.Value                                 'column J'
    WS.Cells(LR + 7, 7).Value = ComboBox6.Value                                  'column G'
    WS.Cells(LR + 7, 4).Value = ComboBox1.Value                                'column D'
    WS.Cells(LR + 7, 9).Value = ComboBox4.Value                                      'column I'
     
    WS.Cells(LR + 7, 2).Value = Label22.Caption                                       'column B'
    WS.Cells(LR + 7, 11).Value = TextBox7.Text                                   'column K'
     
     
    WS.Cells(LR + 8, 1).Value = Label30.Caption                                  'column A'
    WS.Cells(LR + 8, 5).Value = ComboBox2.Value                             'column E'
    WS.Cells(LR + 8, 8).Value = ComboBox3.Value
    WS.Cells(LR + 8, 10).Value = ComboBox5.Value                                 'column J'
    WS.Cells(LR + 8, 7).Value = ComboBox6.Value                                  'column G'
    WS.Cells(LR + 8, 4).Value = ComboBox1.Value                                'column D'
    WS.Cells(LR + 8, 9).Value = ComboBox4.Value                                      'column I'
     
    WS.Cells(LR + 8, 2).Value = Label23.Caption                                       'column B'
    WS.Cells(LR + 8, 11).Value = TextBox8.Text                                   'column K'
     
     
     
    WS.Cells(LR + 9, 1).Value = Label30.Caption                                  'column A'
    WS.Cells(LR + 9, 5).Value = ComboBox2.Value                             'column E'
    WS.Cells(LR + 9, 8).Value = ComboBox3.Value
    WS.Cells(LR + 9, 10).Value = ComboBox5.Value                                 'column J'
    WS.Cells(LR + 9, 7).Value = ComboBox6.Value                                  'column G'
    WS.Cells(LR + 9, 4).Value = ComboBox1.Value                                'column D'
    WS.Cells(LR + 9, 9).Value = ComboBox4.Value                                      'column I'
     
    WS.Cells(LR + 9, 2).Value = Label24.Caption                                       'column B'
    WS.Cells(LR + 9, 11).Value = TextBox9.Text                                   'column K'
     
     
     
     WS.Cells(LR + 10, 1).Value = Label30.Caption                                  'column A'
    WS.Cells(LR + 10, 5).Value = ComboBox2.Value                             'column E'
    WS.Cells(LR + 10, 8).Value = ComboBox3.Value
    WS.Cells(LR + 10, 10).Value = ComboBox5.Value                                 'column J'
    WS.Cells(LR + 10, 7).Value = ComboBox6.Value                                  'column G'
    WS.Cells(LR + 10, 4).Value = ComboBox1.Value                                'column D'
    WS.Cells(LR + 10, 9).Value = ComboBox4.Value                                      'column I'
     
    WS.Cells(LR + 10, 2).Value = Label25.Caption                                       'column B'
    WS.Cells(LR + 10, 11).Value = TextBox10.Text                                   'column K'
     
     
    WS.Cells(LR + 11, 1).Value = Label30.Caption                                    'column A'
    WS.Cells(LR + 11, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 11, 8).Value = ComboBox3.Value
    WS.Cells(LR + 11, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 11, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 11, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 11, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 11, 2).Value = Label26.Caption                                    'column B'
    WS.Cells(LR + 11, 11).Value = TextBox11.Text                                    'column K'
     
     
    WS.Cells(LR + 12, 1).Value = Label30.Caption                                    'column A'
    WS.Cells(LR + 12, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 12, 8).Value = ComboBox3.Value
    WS.Cells(LR + 12, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 12, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 12, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 12, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 12, 2).Value = Label27.Caption                                    'column B'
    WS.Cells(LR + 12, 11).Value = TextBox12.Text                                    'column K'
     
     
     
    WS.Cells(LR + 13, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 13, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 13, 8).Value = ComboBox3.Value
    WS.Cells(LR + 13, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 13, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 13, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 13, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 13, 2).Value = Label16.Caption                                    'column B'
    WS.Cells(LR + 13, 11).Value = TextBox13.Text                                    'column K'
     
     
     
    WS.Cells(LR + 14, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 14, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 14, 8).Value = ComboBox3.Value
    WS.Cells(LR + 14, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 14, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 14, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 14, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 14, 2).Value = Label17.Caption                                    'column B'
    WS.Cells(LR + 14, 11).Value = TextBox14.Text                                    'column K'
     
     
    WS.Cells(LR + 15, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 15, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 15, 8).Value = ComboBox3.Value
    WS.Cells(LR + 15, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 15, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 15, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 15, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 15, 2).Value = Label18.Caption                                    'column B'
    WS.Cells(LR + 15, 11).Value = TextBox15.Text                                    'column K'
     
     
     
     WS.Cells(LR + 16, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 16, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 16, 8).Value = ComboBox3.Value
    WS.Cells(LR + 16, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 16, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 16, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 16, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 16, 2).Value = Label19.Caption                                    'column B'
    WS.Cells(LR + 16, 11).Value = TextBox16.Text                                    'column K'
     
     
     WS.Cells(LR + 17, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 17, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 17, 8).Value = ComboBox3.Value
    WS.Cells(LR + 17, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 17, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 17, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 17, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 17, 2).Value = Label20.Caption                                    'column B'
    WS.Cells(LR + 17, 11).Value = TextBox17.Text                                    'column K'
     
     
     
     WS.Cells(LR + 18, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 18, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 18, 8).Value = ComboBox3.Value
    WS.Cells(LR + 18, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 18, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 18, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 18, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 18, 2).Value = Label21.Caption                                    'column B'
    WS.Cells(LR + 18, 11).Value = TextBox18.Text                                    'column K'
     
     
      WS.Cells(LR + 19, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 19, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 19, 8).Value = ComboBox3.Value
    WS.Cells(LR + 19, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 19, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 19, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 19, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 19, 2).Value = Label22.Caption                                    'column B'
    WS.Cells(LR + 19, 11).Value = TextBox19.Text                                    'column K'
     
     
     
     WS.Cells(LR + 20, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 20, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 20, 8).Value = ComboBox3.Value
    WS.Cells(LR + 20, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 20, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 20, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 20, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 20, 2).Value = Label23.Caption                                    'column B'
    WS.Cells(LR + 20, 11).Value = TextBox20.Text                                    'column K'
     
     
     
     
      WS.Cells(LR + 21, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 21, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 21, 8).Value = ComboBox3.Value
    WS.Cells(LR + 21, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 21, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 21, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 21, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 21, 2).Value = Label24.Caption                                    'column B'
    WS.Cells(LR + 21, 11).Value = TextBox21.Text                                    'column K'
     
       WS.Cells(LR + 22, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 22, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 22, 8).Value = ComboBox3.Value
    WS.Cells(LR + 22, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 22, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 22, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 22, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 22, 2).Value = Label25.Caption                                    'column B'
    WS.Cells(LR + 22, 11).Value = TextBox22.Text                                    'column K'
     
     
     
     
     
        WS.Cells(LR + 23, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 23, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 23, 8).Value = ComboBox3.Value
    WS.Cells(LR + 23, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 23, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 23, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 23, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 23, 2).Value = Label26.Caption                                    'column B'
    WS.Cells(LR + 23, 11).Value = TextBox23.Text                                    'column K'
     
     
    WS.Cells(LR + 24, 1).Value = Label31.Caption                                    'column A'
    WS.Cells(LR + 24, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 24, 8).Value = ComboBox3.Value
    WS.Cells(LR + 24, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 24, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 24, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 24, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 24, 2).Value = Label27.Caption                                    'column B'
    WS.Cells(LR + 24, 11).Value = TextBox24.Text                                    'column K'
     
     
     
    WS.Cells(LR + 25, 1).Value = Label32.Caption                                    'column A'
    WS.Cells(LR + 25, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 25, 8).Value = ComboBox3.Value
    WS.Cells(LR + 25, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 25, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 25, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 25, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 25, 2).Value = Label16.Caption                                    'column B'
    WS.Cells(LR + 25, 11).Value = TextBox25.Text                                    'column K'
     
     
     
    WS.Cells(LR + 26, 1).Value = Label32.Caption                                    'column A'
    WS.Cells(LR + 26, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 26, 8).Value = ComboBox3.Value
    WS.Cells(LR + 26, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 26, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 26, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 26, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 26, 2).Value = Label17.Caption                                    'column B'
    WS.Cells(LR + 26, 11).Value = TextBox26.Text                                    'column K'
     
     
    WS.Cells(LR + 27, 1).Value = Label32.Caption                                    'column A'
    WS.Cells(LR + 27, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 27, 8).Value = ComboBox3.Value
    WS.Cells(LR + 27, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 27, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 27, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 27, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 27, 2).Value = Label18.Caption                                    'column B'
    WS.Cells(LR + 27, 11).Value = TextBox27.Text                                    'column K'
     
    WS.Cells(LR + 28, 1).Value = Label32.Caption                                    'column A'
    WS.Cells(LR + 28, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 28, 8).Value = ComboBox3.Value
    WS.Cells(LR + 28, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 28, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 28, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 28, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 28, 2).Value = Label19.Caption                                    'column B'
    WS.Cells(LR + 28, 11).Value = TextBox28.Text                                    'column K'
     
     
     
    WS.Cells(LR + 29, 1).Value = Label32.Caption                                    'column A'
    WS.Cells(LR + 29, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 29, 8).Value = ComboBox3.Value
    WS.Cells(LR + 29, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 29, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 29, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 29, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 29, 2).Value = Label20.Caption                                    'column B'
    WS.Cells(LR + 29, 11).Value = TextBox29.Text                                    'column K'
     
     
     
     
    WS.Cells(LR + 30, 1).Value = Label32.Caption                                    'column A'
    WS.Cells(LR + 30, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 30, 8).Value = ComboBox3.Value
    WS.Cells(LR + 30, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 30, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 30, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 30, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 30, 2).Value = Label21.Caption                                    'column B'
    WS.Cells(LR + 30, 11).Value = TextBox30.Text                                    'column K'
     
     
     
     
    WS.Cells(LR + 31, 1).Value = Label32.Caption                                    'column A'
    WS.Cells(LR + 31, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 31, 8).Value = ComboBox3.Value
    WS.Cells(LR + 31, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 31, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 31, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 31, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 31, 2).Value = Label22.Caption                                    'column B'
    WS.Cells(LR + 31, 11).Value = TextBox31.Text                                    'column K'
     
     
     
    WS.Cells(LR + 32, 1).Value = Label32.Caption                                    'column A'
    WS.Cells(LR + 32, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 32, 8).Value = ComboBox3.Value
    WS.Cells(LR + 32, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 32, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 32, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 32, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 32, 2).Value = Label23.Caption                                    'column B'
    WS.Cells(LR + 32, 11).Value = TextBox32.Text                                    'column K'
     
     
     
    WS.Cells(LR + 33, 1).Value = Label32.Caption                                    'column A'
    WS.Cells(LR + 33, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 33, 8).Value = ComboBox3.Value
    WS.Cells(LR + 33, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 33, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 33, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 33, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 33, 2).Value = Label24.Caption                                    'column B'
    WS.Cells(LR + 33, 11).Value = TextBox33.Text                                    'column K'
     
     
    WS.Cells(LR + 34, 1).Value = Label32.Caption                                    'column A'
    WS.Cells(LR + 34, 5).Value = ComboBox2.Value                                    'column E'
    WS.Cells(LR + 34, 8).Value = ComboBox3.Value
    WS.Cells(LR + 34, 10).Value = ComboBox5.Value                                   'column J'
    WS.Cells(LR + 34, 7).Value = ComboBox6.Value                                    'column G'
    WS.Cells(LR + 34, 4).Value = ComboBox1.Value                                    'column D'
    WS.Cells(LR + 34, 9).Value = ComboBox4.Value                                    'column I'
     
    WS.Cells(LR + 34, 2).Value = Label25.Caption                                    'column B'
    WS.Cells(LR + 34, 11).Value = TextBox34.Text                                    'column K'
    Une partie du code ...

    Merci pour vos conseils et votre aide

    Loupion

  2. #2
    Membre émérite Avatar de Thautheme
    Homme Profil pro
    salarié
    Inscrit en
    Août 2014
    Messages
    1 373
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 63
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : salarié

    Informations forums :
    Inscription : Août 2014
    Messages : 1 373
    Points : 2 594
    Points
    2 594
    Par défaut
    Bonjour Loupion, bonjour le forum,

    Essaie comme ça :

    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
    Private Sub CommandButton1_Click()
    Dim WS As Object
    Dim LR As Long
    Dim J As Byte
    Dim K As Byte
    Dim LI As Long
     
    Set WS = ActiveWorkbook.Sheets("COMPASS Extraction")
    LR = WS.Range("A950000").End(xlUp).Row
     
    J = 16: K = 1
    For LI = LR + 1 To LF + 120
        WS.Cells(LI, 1).Value = Label30.Caption                                  'column A'
        WS.Cells(LI, 5).Value = ComboBox2.Value                             'column E'
        WS.Cells(LI, 8).Value = ComboBox3.Value
        WS.Cells(LI, 10).Value = ComboBox5.Value                                 'column J'
        WS.Cells(LI, 7).Value = ComboBox6.Value                                  'column G'
        WS.Cells(LI, 4).Value = ComboBox1.Value                                'column D'
        WS.Cells(LI, 9).Value = ComboBox4.Value                                      'column I'
     
        WS.Cells(LI, 2).Value = Me.controls("Label" & J).Caption                                    'column B'
        WS.Cells(LI, 11).Value = Me.Controls("TextBox" & K).Text                                   'column K'
        J = J + 1: K = K + 1
    Next LI
    End Sub
    À plus,

    Thauthème

    Je suis Charlie

  3. #3
    Nouveau membre du Club
    Homme Profil pro
    controleur gestion
    Inscrit en
    Novembre 2014
    Messages
    53
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Croatie

    Informations professionnelles :
    Activité : controleur gestion

    Informations forums :
    Inscription : Novembre 2014
    Messages : 53
    Points : 25
    Points
    25
    Par défaut
    Bonjour Thautheme,

    le Label 30 est aussi variable. Il s'agit d une "categorie" qui change ( J ai 10 categories sur 12 mois).

    Le code que tu propose, aucune donnee ne se copie dans la feuille de destination, j essaie de comprendre pourquoi mais je ne voies pas le soucis.

    Merci pour ton aide

    Loupion

  4. #4
    Invité
    Invité(e)
    Par défaut
    bonjour,
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    LR = WS.Range("A" & cells.rows.count).End(xlUp).Row

  5. #5
    Membre émérite
    Inscrit en
    Octobre 2010
    Messages
    1 401
    Détails du profil
    Informations forums :
    Inscription : Octobre 2010
    Messages : 1 401
    Points : 2 684
    Points
    2 684
    Par défaut
    Bonjour Loupion

    Un pas de fait avec du classement.
    Fichiers attachés Fichiers attachés
    Cordialement

    Docmarti.

  6. #6
    Membre émérite Avatar de Thautheme
    Homme Profil pro
    salarié
    Inscrit en
    Août 2014
    Messages
    1 373
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 63
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : salarié

    Informations forums :
    Inscription : Août 2014
    Messages : 1 373
    Points : 2 594
    Points
    2 594
    Par défaut
    Bonjour le fil, bonjour le forum,

    Citation Envoyé par Loupion Voir le message
    Bonjour Thautheme,

    le Label 30 est aussi variable. Il s'agit d une "categorie" qui change ( J ai 10 categories sur 12 mois).

    Le code que tu propose, aucune donnee ne se copie dans la feuille de destination, j essaie de comprendre pourquoi mais je ne voies pas le soucis.
    La Label30 est variable !? Ha bon. Où ? Quand ? Comment ? Je ne comprends pas non plus pourquoi aucune donnée n'est renvoyée. Essaie d'adapter ou envoie un fichier exemple pour qu'on comprenne mieux...
    À plus,

    Thauthème

    Je suis Charlie

  7. #7
    Nouveau membre du Club
    Homme Profil pro
    controleur gestion
    Inscrit en
    Novembre 2014
    Messages
    53
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Croatie

    Informations professionnelles :
    Activité : controleur gestion

    Informations forums :
    Inscription : Novembre 2014
    Messages : 53
    Points : 25
    Points
    25
    Par défaut
    Hello Thautheme,

    La ligne de code avec le label 30 change.
    Autrement dit, apres 10 variables, le label 30 devient 31 etc

    Il y avait un soucis dans le code que tu proposais,

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    For LI = LR + 1 To LF + 120
    LF n etant pas declare j en ai deduis que je devais utiliser LR, mais aucune donnee n est transferee.

    Maintenant cela se transfere mais le code s arrete car il y a une erreur " Run time Error - 2147624809" sur la ligne

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    WS.Cells(LI, 2).Value = Me.Controls("Label" & J).Caption
    Ci joint un exemple

    Les codes doivent varier en fonction des categories

    File.zip

  8. #8
    Membre émérite Avatar de Thautheme
    Homme Profil pro
    salarié
    Inscrit en
    Août 2014
    Messages
    1 373
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 63
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : salarié

    Informations forums :
    Inscription : Août 2014
    Messages : 1 373
    Points : 2 594
    Points
    2 594
    Par défaut
    Bonsoir Le fil, bonsoir le forum,

    Gros fichier ! Je cerne un peu mieux le problème... Mais pour comprendre vraiment ce que tu voudrais il me faut une capture d'écran de l'UserForm rempli et le fichier avec les données renvoyées dans l'onglet COMPASS Extraction. Parce que là c'est pas clair encore...

    En attendant j'ai modifié le code pour l'alimentation des comboboxes avec l'utilisation d'un dictionnaire. Elle se fait directement au changement dans une combobox sans passer par une procédure de mise à jour...

    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
    Option Explicit
    Private CE As Object
    Private C As Object
    Private P As Object
    Private TC As Variant
     
    Private Sub UserForm_Initialize()
    Dim I As Integer
    Dim D As Object
     
    Set CE = Sheets("COMPASS Extraction")
    Set C = Sheets("Code")
    Set P = Sheets("Products")
    TC = P.Range("A1").CurrentRegion
    Set D = CreateObject("Scripting.Dictionary")
    For I = 1 To UBound(TC, 1)
        D(TC(I, 1)) = ""
    Next I
    Me.ComboBox3.List = D.keys
    End Sub
     
    Private Sub ComboBox3_Change()
    Dim I As Integer
    Dim D As Object
     
    Me.ComboBox4.Clear
    Me.ComboBox5.Clear
    Me.ComboBox6.Clear
    Set D = CreateObject("Scripting.Dictionary")
    For I = 1 To UBound(TC, 1)
        If TC(I, 1) = Me.ComboBox3.Value Then D(TC(I, 2)) = ""
    Next I
    Me.ComboBox4.List = D.keys
    End Sub
     
    Private Sub ComboBox4_Change()
    Dim I As Integer
    Dim D As Object
     
    Me.ComboBox5.Clear
    Me.ComboBox6.Clear
    Set D = CreateObject("Scripting.Dictionary")
    For I = 1 To UBound(TC, 1)
        If TC(I, 1) = Me.ComboBox3.Value And TC(I, 2) = Me.ComboBox4.Value Then D(TC(I, 3)) = ""
    Next I
    Me.ComboBox5.List = D.keys
    End Sub
     
    Private Sub ComboBox5_Change()
    Dim I As Integer
    Dim D As Object
     
    Me.ComboBox6.Clear
    Set D = CreateObject("Scripting.Dictionary")
    For I = 1 To UBound(TC, 1)
        If TC(I, 1) = Me.ComboBox3.Value And TC(I, 2) = Me.ComboBox4.Value _
           And TC(I, 3) = Me.ComboBox5.Value Then D(TC(I, 4)) = ""
    Next I
    Me.ComboBox6.List = D.keys
    End Sub
    À plus,

    Thauthème

    Je suis Charlie

  9. #9
    Nouveau membre du Club
    Homme Profil pro
    controleur gestion
    Inscrit en
    Novembre 2014
    Messages
    53
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Croatie

    Informations professionnelles :
    Activité : controleur gestion

    Informations forums :
    Inscription : Novembre 2014
    Messages : 53
    Points : 25
    Points
    25
    Par défaut
    Hello Thautheme

    Ci joint le fichier avec la feuille " Compass Extraction " remplie

    File.7z

  10. #10
    Membre émérite Avatar de Thautheme
    Homme Profil pro
    salarié
    Inscrit en
    Août 2014
    Messages
    1 373
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 63
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : salarié

    Informations forums :
    Inscription : Août 2014
    Messages : 1 373
    Points : 2 594
    Points
    2 594
    Par défaut
    Bonjour le fil, bonjour le forum,

    Le code modifié :

    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
    Option Explicit
    Private CE As Object
    Private C As Object
    Private P As Object
    Private TC As Variant
     
    Private Sub UserForm_Initialize()
    Dim I As Integer
    Dim D As Object
     
    Set CE = Sheets("COMPASS Extraction")
    Set C = Sheets("Code")
    Set P = Sheets("Products")
    TC = P.Range("A1").CurrentRegion
    Set D = CreateObject("Scripting.Dictionary")
    For I = 1 To UBound(TC, 1)
        D(TC(I, 1)) = ""
    Next I
    Me.ComboBox3.List = D.keys
    End Sub
     
    Private Sub ComboBox3_Change()
    Dim I As Integer
    Dim D As Object
     
    Me.ComboBox4.Clear
    Me.ComboBox5.Clear
    Me.ComboBox6.Clear
    Set D = CreateObject("Scripting.Dictionary")
    For I = 1 To UBound(TC, 1)
        If TC(I, 1) = Me.ComboBox3.Value Then D(TC(I, 2)) = ""
    Next I
    Me.ComboBox4.List = D.keys
    End Sub
     
    Private Sub ComboBox4_Change()
    Dim I As Integer
    Dim D As Object
     
    Me.ComboBox5.Clear
    Me.ComboBox6.Clear
    Set D = CreateObject("Scripting.Dictionary")
    For I = 1 To UBound(TC, 1)
        If TC(I, 1) = Me.ComboBox3.Value And TC(I, 2) = Me.ComboBox4.Value Then D(TC(I, 3)) = ""
    Next I
    Me.ComboBox5.List = D.keys
    End Sub
     
    Private Sub ComboBox5_Change()
    Dim I As Integer
    Dim D As Object
     
    Me.ComboBox6.Clear
    Set D = CreateObject("Scripting.Dictionary")
    For I = 1 To UBound(TC, 1)
        If TC(I, 1) = Me.ComboBox3.Value And TC(I, 2) = Me.ComboBox4.Value _
           And TC(I, 3) = Me.ComboBox5.Value Then D(TC(I, 4)) = ""
    Next I
    Me.ComboBox6.List = D.keys
    End Sub
     
    Private Sub CommandButton1_Click()
    Dim LR As Long
    Dim J As Byte
    Dim K As Byte
    Dim L As Integer
    Dim M As Byte
    Dim LI As Long
     
    LR = CE.Cells(Application.Rows.Count, 1).End(xlUp).Row
    J = 16: K = 1: L = 0: M = 30
    For LI = LR + 1 To LR + 132
        If L <> 0 And L Mod 12 = 0 Then M = M + 1: J = 16
        CE.Cells(LI, 1).Value = Me.Controls("Label" & M).Caption 'column A'
        CE.Cells(LI, 2).Value = Me.Controls("Label" & J).Caption 'column B'
        CE.Cells(LI, 4).Value = ComboBox1.Value 'column D'
        CE.Cells(LI, 5).Value = ComboBox2.Value 'column E'
        CE.Cells(LI, 7).Value = ComboBox6.Value 'column G'
        CE.Cells(LI, 8).Value = ComboBox3.Value 'column H'
        CE.Cells(LI, 9).Value = ComboBox4.Value 'column I'
        CE.Cells(LI, 10).Value = ComboBox5.Value 'column J'
        CE.Cells(LI, 11).Value = Me.Controls("TextBox" & K).Value 'column K'
        J = J + 1: K = K + 1: L = L + 1
    Next LI
    End Sub
    Le fichier ici.
    À plus,

    Thauthème

    Je suis Charlie

  11. #11
    Nouveau membre du Club
    Homme Profil pro
    controleur gestion
    Inscrit en
    Novembre 2014
    Messages
    53
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Croatie

    Informations professionnelles :
    Activité : controleur gestion

    Informations forums :
    Inscription : Novembre 2014
    Messages : 53
    Points : 25
    Points
    25
    Par défaut
    Bonjour Thautheme

    Merci beaucoup, cela fonctionne parfaitement et je parviens a dechiffrer le code pour l ajuster en cas de besoin futur

    Je souhaiterai mettre les informations du label 7 a 29 (Categories ) dans la colonne C mais je ne parviens pas a modifier le code dans ce sens, j imagine que je dois faire une boucle en rajoutant une variable mais quand je le fais je ne parviens pas a limiter sur le label 7 a 29. La boucle continue jusqu a la fin a prenant les autres label.

    Merci pour votre aide

    Loupion

  12. #12
    Membre émérite Avatar de Thautheme
    Homme Profil pro
    salarié
    Inscrit en
    Août 2014
    Messages
    1 373
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 63
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : salarié

    Informations forums :
    Inscription : Août 2014
    Messages : 1 373
    Points : 2 594
    Points
    2 594
    Par défaut
    Bonjour Loupion, bonjour le forum,

    J'ai renommé tes labels : Cat1, Cat2,..., Cat10, Cat11. Ensuite j'ai rajouté celle ligne :
    CE.Cells(LI, 3).Value = Me.Controls("Cat" & M - 29).Caption 'column C'

    À plus,

    Thauthème

    Je suis Charlie

  13. #13
    Nouveau membre du Club
    Homme Profil pro
    controleur gestion
    Inscrit en
    Novembre 2014
    Messages
    53
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Croatie

    Informations professionnelles :
    Activité : controleur gestion

    Informations forums :
    Inscription : Novembre 2014
    Messages : 53
    Points : 25
    Points
    25
    Par défaut
    Bonjour Thautheme,

    En procedant ainsi, cela veut dire que je dois garder les noms des labels figer, or je souhaiterai pouvoir changer la caption des labels et ne pas garder "categories" mais mettre un texte plus explicite pour les utilisateurs.

    Y a t il une alternative?

    Loupion

  14. #14
    Membre émérite Avatar de Thautheme
    Homme Profil pro
    salarié
    Inscrit en
    Août 2014
    Messages
    1 373
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 63
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : salarié

    Informations forums :
    Inscription : Août 2014
    Messages : 1 373
    Points : 2 594
    Points
    2 594
    Par défaut
    Bonjour Loupion, bonjour le forum,

    Le nom (propiréé [Name]) d'une label n'a rien à voir avec sa propriété [Caption] . Tu peux changer la [Caption] autant que tu le désires le code fonctionnera de la même manière..
    Je ne comprends pas que tu ne prennes pas le temps de tester avant de poser une question et d'attendre que l'on y réponde...
    À plus,

    Thauthème

    Je suis Charlie

  15. #15
    Nouveau membre du Club
    Homme Profil pro
    controleur gestion
    Inscrit en
    Novembre 2014
    Messages
    53
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : Croatie

    Informations professionnelles :
    Activité : controleur gestion

    Informations forums :
    Inscription : Novembre 2014
    Messages : 53
    Points : 25
    Points
    25
    Par défaut
    bonsoir thautheme

    je ne peux pas tester car je ne sais pas comment renommer les labels sans changer leut caption et mettre les categories comme tu l indiques

    mon intention sur le forum n est pas d avoir du travail maché mais de comprendre pour pouvoir me debrouiller par la suite.

  16. #16
    Membre émérite Avatar de Thautheme
    Homme Profil pro
    salarié
    Inscrit en
    Août 2014
    Messages
    1 373
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 63
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : salarié

    Informations forums :
    Inscription : Août 2014
    Messages : 1 373
    Points : 2 594
    Points
    2 594
    Par défaut
    Bonsoir Loupion, bonsoir le forum,

    Dans VBE (Visual Basic Editor) sélectionne l'UserForm. Là, tu sélectionnes la Label7 et dans la fenêtre de propriété double-clique dans la propriété (Name) tu remplace Label7 par Cat1, tu fais pareil pour les autres labels des catégories...

    Mais je conçois mal que tu aies écris tout ce code et que tu ne saches pas changer le nom d'un contrôle...
    À plus,

    Thauthème

    Je suis Charlie

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

Discussions similaires

  1. Error Procedure too large
    Par tomy7 dans le forum Macros et VBA Excel
    Réponses: 4
    Dernier message: 23/04/2008, 09h46
  2. SQL LOADER : value too large ...
    Par magic charly dans le forum SQL*Loader
    Réponses: 29
    Dernier message: 25/10/2007, 18h16
  3. Erreur de "Procedure too large"
    Par Tintou dans le forum VBA Access
    Réponses: 4
    Dernier message: 14/05/2007, 08h37
  4. Réponses: 1
    Dernier message: 22/07/2005, 13h32
  5. Error 124 : statement part too large
    Par cedchantrel dans le forum Turbo Pascal
    Réponses: 4
    Dernier message: 29/03/2005, 10h30

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