Merci beaucoup ! Ca à l'air de fonctionner !
Seulement maintenant, le but est de sélectionner lequel est le fichier source, et lequel est le fichier cible. Mais je n'arrive pas à l'adapter à ton code :
Sub Control()
Dim x As Long, wb As String, c As Range
'Définition du fichier source
fichier_src = Application.GetOpenFilename()
If fichier_src <> False Then
Else
MsgBox "Vous n'avez pas sélectionné de fichier.", vbExclamation
End If
'Définition du fichier cible où doivent être copiés les commentaires
fichier_cible = Application.GetOpenFilename()
If fichier_cible <> False Then
Else
MsgBox "Vous n'avez pas sélectionné de fichier.", vbExclamation
End If
wb = Workbooks(fichier_cible).Name
Workbooks.Open Filename:=fichier_src
For x = 1 To Workbooks(wb).Sheets(1).Range("A" & Rows.Count).End(xlUp).Row
Set c = Columns(1).Find(what:=Workbooks(wb).Sheets(1).Cells(x, 1), LookAt:=xlWhole)
If Workbooks(wb).Sheets(1).Cells(x, 13) = "" And Not c Is Nothing Then Workbooks(wb).Sheets(1).Cells(x, 13) = Cells(c.Row, 13)
Next
End Sub
J'ai une erreur , "l'indice n'appartient pas à la sélection" ici :
(wb = Workbooks(fichier_cible).Name)
:/