Bonjour,
J'aurais besoin d'aide sur un problème de variables.
En fait c'est assez simple j'ai 22 variable b1 --> B22
Et je voudrais que le if est pour condition
b1, puis b2 puis b3 etc ...
Voici mon code :
Je pensais Qu'en faisant une boucle for avec une variable d'Integer h,
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 Dim b1 As String Dim b2 As String Dim b3 As String 'Etc..... b1 = "X" b2 = "Y" b3 = "Z" 'Etc .... For g = 2 To 12 For i = 6 To 477 For j = 1 To 80 For h = 1 To 22 Windows("Rapport index.xls").Activate Sheets("mois " & g).Activate 'Le probleme ce trouve ici ===> If Range("B" & i) = b &h Then Range("E" & i).Copy ......
ça marcherait
Mais non
Code : Sélectionner tout - Visualiser dans une fenêtre à part If Range("B" & i) = b &h Then
Merci d'avance
Partager