1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| Sub Validation_choix()
Dim Shp As Shape
Dim Fichier As String
Dim cell As range
Select Case type_de_charge
'.ColorIndex = 1 noir
'.ColorIndex = 6 jaune
Case Is = "Charge linéaire"
Worksheets("Accueil").range("B34").Select
With Selection.Interior
.ColorIndex = 1
.Pattern = xlSolid
End With
Worksheets("Accueil").range("C34").Select
With Selection.Interior
.ColorIndex = 1
.Pattern = xlSolid
End With
Worksheets("Accueil").range("C42").Select
With Selection.Interior
.ColorIndex = 1
.Pattern = xlSolid
End With
Worksheets("Accueil").range("C43").Select
With Selection.Interior
.ColorIndex = 1
.Pattern = xlSolid
End With
Worksheets("Accueil").range("D71").Select
With Selection.Interior
.ColorIndex = 1
.Pattern = xlSolid
End With
Worksheets("Accueil").range("D79").Select
With Selection.Interior
.ColorIndex = 1
.Pattern = xlSolid
End With
Fichier = "C:\Documents and Settings\Marlène\Application Data\Microsoft\Media Catalog\artgal50.mmc"
Set cell = Worksheets("Accueil").range("D24")
Set Shp = Feuil1.Shapes.AddPicture_(Fichier, msoFalse, msoCTrue, cell.Left, cell.Top, cell.Width, cell.Height) |
Partager