K
kakachi
Guest
bonsoir,
j'ai codé une macro " archiver " mais quand je l'exécute, j'ai ce message " incompatibilité de type ", je ne sais pas comment résoudre ce problème
voici le le code :
En rouge, l'incompatibilité de type
Sub Archiver()
Dim num_position(17) As Byte
Dim i As Integer
Sheets("Jeu_Résultats").Select
Range("K2").Select
date_position = Range("K2").Value
If date_position = "" Then Exit Sub
For i = 1 To 17
num_position(i) = Range("L6").Offset(i - 1, 0).Value
If IsEmpty(num_position(i)) Then
End If
Next i
Sheets("Archives").Select
Range("A1").Select
If Range("A3").Value <> "" Then ActiveCell.End(xlDown).Select
ActiveCell.Offset(2, 0).Select
ActiveCell.Value = date_position
For i = 1 To 17
ActiveCell.Offset(0, i).Value = num_position(i)
Next i
End Sub
si une personne peut m'aider 🙂
@+ !!! et bonne nuit
j'ai codé une macro " archiver " mais quand je l'exécute, j'ai ce message " incompatibilité de type ", je ne sais pas comment résoudre ce problème
voici le le code :
En rouge, l'incompatibilité de type
Sub Archiver()
Dim num_position(17) As Byte
Dim i As Integer
Sheets("Jeu_Résultats").Select
Range("K2").Select
date_position = Range("K2").Value
If date_position = "" Then Exit Sub
For i = 1 To 17
num_position(i) = Range("L6").Offset(i - 1, 0).Value
If IsEmpty(num_position(i)) Then
End If
Next i
Sheets("Archives").Select
Range("A1").Select
If Range("A3").Value <> "" Then ActiveCell.End(xlDown).Select
ActiveCell.Offset(2, 0).Select
ActiveCell.Value = date_position
For i = 1 To 17
ActiveCell.Offset(0, i).Value = num_position(i)
Next i
End Sub
si une personne peut m'aider 🙂
@+ !!! et bonne nuit