KTM
XLDnaute Impliqué
Bonsoir chers tous
ma macro ci dessous de fini jamais de s’exécuter. Que Faire ?
ma macro ci dessous de fini jamais de s’exécuter. Que Faire ?
VB:
Sub Reinitialiser_RM()
Dim cel As Range, i As Long, T, Lig As Variant
Application.ScreenUpdating = False
For i = 51 To 100
With Worksheets(i)
.Activate
If .Range("L1") <> "" Then
If Sheets("Menu").Range("C10").Value > Sheets("Menu").Range("D10").Value Then
.Range("R10:AC240").ClearContents
Sheets("VD").Range("K8:V238").ClearContents
End If
.Range("C243").Value = .Range("C247").Value
.Range("D10:D240").Value = .Range("I10:I240").Value
.Range("L10:L240").Value = .Range("K10:K240").Value
.Range("K10:K240").Value = .Range("F10:F240").Value
For Each cel In .Range("D10:D240,K10:L240")
If IsNumeric(CStr(cel)) Then cel.FormulaLocal = "=" & cel Else cel.Formula = "=""" & cel & """"
Next cel
.Range("G3:I3,F10:H240,J10:J240") = ""
End If
End With
Next i
End Sub