pascal21
XLDnaute Barbatruc
PHP:
Sub Feuil1VersFeuil2()
Dim NbLigneFeuil1 As Long
Dim NbColonneFeuil1 As Long
Dim LigneFeuil2 As Long
Application.ScreenUpdating = False
Sheets("copie").Select
NbLigneFeuil1 = [d1000].End(xlUp).Row
NbColonneFeuil1 = [by3].End(xlToLeft).Column
LigneFeuil2 = 3
With Sheets("analyse")
.[A2] = "Parc"
.[B2] = "Dates"
.[C2] = "Tâches"
.[e2] = "Commentaires"
For j = 5 To NbColonneFeuil1
For i = 4 To NbLigneFeuil1
If Cells(i, j) <> " " Then
.Cells(LigneFeuil2, 1) = Cells(3, j)
.Cells(LigneFeuil2, 2) = Cells(i, 4)
.Cells(LigneFeuil2, 3) = Cells(i, j)
If Not Cells(i, j).Comment Is Nothing Then
.Cells(LigneFeuil2, 5) = Right(Cells(i, j).Comment.Text, Len(Cells(i, j).Comment.Text) - 16)
End If
LigneFeuil2 = LigneFeuil2 + 1
End If
Next i
Next j
' .Range("A2:D2").AutoFilter
End With
Sheets("analyse").Select
Application.ScreenUpdating = True
End Sub
je cherche juste à comprendre pourquoi cette macro ( de excel-lent) merci à lui fonctionne bien sur un classeur tout simple lors des essais
ça ne fonctionne plus (excel figé)dans ce fichier simple si j'ouvre un autre classeur
et pourquoi ça ne fonctionne plus (excel figé) lorsque je le mets dans le classeur définitif où il y a déjà des macros
serait-ce un problème de mémoire?
est-il possible de remédier à ce problème?
merci pour votre aide