I'm currently using this structure in a code:
With Worksheets("Vendredi jour")
.Unprotect
.Cells(15, 43).Resize(1, 6).Value = Array(B, C, D, E, F, G) ' Mets les minutes dans le tableau de compilations
.Protect
End With
Since it been given to me like a gift of god, I don't understand how it works, which is problematic since I want to apply it to this :
With Worksheets("Vendredi jour")
.Unprotect
.Cells(9, 41).Value = MyArray(0, 0) ' (x,0) = Employé
.Cells(10, 41).Value = MyArray(1, 0)
.Cells(11, 41).Value = MyArray(2, 0)
.Cells(12, 41).Value = MyArray(3, 0)
.Cells(13, 41).Value = MyArray(4, 0)
.Cells(9, 44).Value = MyArray(0, 1) ' (x,1) = Passes
.Cells(10, 44).Value = MyArray(1, 1)
.Cells(11, 44).Value = MyArray(2, 1)
.Cells(12, 44).Value = MyArray(3, 1)
.Cells(13, 44).Value = MyArray(4, 1)
.Cells(9, 46).Value = MyArray(0, 2) ' (x,2) = Pertes
.Cells(10, 46).Value = MyArray(1, 2)
.Cells(11, 46).Value = MyArray(2, 2)
.Cells(12, 46).Value = MyArray(3, 2)
.Cells(13, 46).Value = MyArray(4, 2)
.Protect
End With
Is there any documentation that explains it?