Bonjour ,
Je me suis lancé un défi , faire un petit programme pour ma femme.
Ca fait une semaine que je me suis mit a VBA alors soyez indulgent
Voici le bout de code qui me pose problème :
If Range("Donnees!S5") = 0 Then 'lundi
If Cells(ligne_search, 7) = "x" Then 'lundi matin
Cells(ligne_search, 7).Interior.ColorIndex = 43
champ = Range("Matin!A65536").End(xlUp).Row + 1
'cells(variable,x).value = mavaleur (x est le n° de colonne de cette cellule)
Cells(Matin!champ, 1).Value = Cells(ligne_search, 2)
End If
If Cells(ligne_search, 8) = "x" Then 'lundi apresmidi
Cells(ligne_search, 8).Interior.ColorIndex = 43
End If
End If
plus particulierement
Cells(Matin!champ, 1).Value = Cells(ligne_search, 2)
je récupère la dernière ligne sur ma seconde feuille
ensuite je voudrais transformer cette variable par exemple 12 en A12 et c'est la que je coince !!
Si quelqu'un connaît la solution