D
Diane31000
Guest
Bonjour,
Quelqu'un pourrait-il m'aider a comprendre cette macro:
Sub Examen_decembre_2010()
Sheets("Feuil1").Select
Cells.Clear
Sheets("Feuil1").Name = "Premiere Feuille"
A = 1
i = 1
Do While A = 1
Z = InputBox("Veuillez entrer un numero a 5 chiffres")
If Left(Z, 2) > 95 Then
Cells(i, 1) = Z
Cells(i, 1).Front.Italic = True
If Z = 98818 Then
MsgBox "KOUAOUA"
A = 0
End If
Else
Cells(i, 2) = Left(Z, 2)
Cells(i, 2).Front.ColorIndex = 2
End If
i = i + 1
Loop
Columns.AutoFit
Sheets("Feuil2").Select
For j = 1 To 5
Cells(j, j) = j ^ 2
Next j
Set W = Cells(1, 1).CurrentRegion
Y = W.Rows.Count
Cells(Y + 2.1) = Y
End Sub
Merci 1000 fois d'avance =))
Quelqu'un pourrait-il m'aider a comprendre cette macro:
Sub Examen_decembre_2010()
Sheets("Feuil1").Select
Cells.Clear
Sheets("Feuil1").Name = "Premiere Feuille"
A = 1
i = 1
Do While A = 1
Z = InputBox("Veuillez entrer un numero a 5 chiffres")
If Left(Z, 2) > 95 Then
Cells(i, 1) = Z
Cells(i, 1).Front.Italic = True
If Z = 98818 Then
MsgBox "KOUAOUA"
A = 0
End If
Else
Cells(i, 2) = Left(Z, 2)
Cells(i, 2).Front.ColorIndex = 2
End If
i = i + 1
Loop
Columns.AutoFit
Sheets("Feuil2").Select
For j = 1 To 5
Cells(j, j) = j ^ 2
Next j
Set W = Cells(1, 1).CurrentRegion
Y = W.Rows.Count
Cells(Y + 2.1) = Y
End Sub
Merci 1000 fois d'avance =))