Bonjour au forum,
je tourne en rond sur ce problème. J'essaye d'intégrer une couleur de fond aux cellules sur deux onglets. Je tourne le problème dans tous les sens et je bloque.Voici le code
Sub toto()
Range(Cells(9, 2), Cells(9, 3)).Select
Range(Cells(9, 5), Cells(9, 7)).Select
Range("Cells(9, 9), Cells(9, 14), Cells(9, 21)").Select 😡 (là ca prend pas pourtant il accepte Range("A1:B5,C8,D9").select)
Sheets("Onglet2").Select
cells(10,9).Select
With Selection.Interior
.ColorIndex = 35
.Pattern = xlSolid
End With
Sheets("Onglet1").Select
Selection.Interior.ColorIndex = 35
end sub
Merci pour votre aide
@+ Ozons
je tourne en rond sur ce problème. J'essaye d'intégrer une couleur de fond aux cellules sur deux onglets. Je tourne le problème dans tous les sens et je bloque.Voici le code
Sub toto()
Range(Cells(9, 2), Cells(9, 3)).Select
Range(Cells(9, 5), Cells(9, 7)).Select
Range("Cells(9, 9), Cells(9, 14), Cells(9, 21)").Select 😡 (là ca prend pas pourtant il accepte Range("A1:B5,C8,D9").select)
Sheets("Onglet2").Select
cells(10,9).Select
With Selection.Interior
.ColorIndex = 35
.Pattern = xlSolid
End With
Sheets("Onglet1").Select
Selection.Interior.ColorIndex = 35
end sub
Merci pour votre aide
@+ Ozons