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
| Dim rngCell As Range
Dim memCell As Range
Dim rngSelection As Range
Dim intRow As Integer
Dim intCol As Integer
Dim i As Integer
i = 2
Set memCell = Selection
For Each cell In memCell
If Range("F" & cell.Row).Value <> Leer Or Range("F" & cell.Row).Value <> Null Then
MsgBox "Error"
'supprimer ce cell
End If
Next cell
For Each cell In memCell
Set rngCell = cell
intRow = rngCell.Row
If rngCell.Column = 1 Then
intCol = rngCell.Column
Set rngSelection = ActiveSheet.Range(Cells(intRow, intCol), Cells(intRow, 5))
rngSelection.Select
Selection.Copy
Sheets(User).Visible = True
Sheets(User).Select
'Check Data
CheckUserData
i = n
Range("A" & i).Select
ActiveSheet.Paste
Sheets("Report").Select
i = i + 1
End If
Next cell |