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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
| Sub Macro_effac_sem()
'
' Macro_effac_sem_complèteMacro
' Macro enregistrée le 05/03/2008 par Dominique
'
Application.ScreenUpdating = False
Union(Range( _
"L48,F4,H7,c11:f15,d16:e17,b17:c17,b11,b13,b15,f17,h11:l12,j13:k17,h16:i17,h14:i14,l13:l14,l16:l17,d19:e37,b39:f49,j19:k46,j47:j48,b24:c24,b26:c26,h20:i20,h49:l49" _
), Range( _
"L99,F55,H58,C62:F66,D67:E68,B68:C68,B62,B64,B66,F68,H62:L63,J64:K68,H67:I68,H65:I65,L64:L65,L67:L68,D70:E88,B90:F100,J70:K97,J98:J99,H100:L100,B71:C71,B73:C73,B75:C75,B77:C77,H71:J71" _
), Range( _
"L150,F106,H109,C113:F117,D118:E119,B119:C119,B113,B115,B117,F119,H113:L114,J115:K119,H118:I119,H116:I116,L115:L116,L118:L119,D121:E139,B141:F151,J121:K148,J149:J150,H151:L151,B122:C122,B124:C124,B126:C126,B128:C128,H122:i122" _
), Range( _
"F157,H160,C164:F168,D169:E170,B170:C170,B164,B166,B168,F170,H164:L165,J166:K170,H169:I170,H167:I167,L166:L167,L169:L170,D172:E190,B192:F202,J172:K199,H200:L202,B173:C173,B175:C175,B177:C177,B179:C179,H173:I173,B215:F224,H215:L224" _
)).Select
Selection.ClearContents
Selection.Interior.ColorIndex = xlNone
Range( _
"E23,B11:F17,H11:L17,B19:F37,H19:L49,B39:F49,B62:F68,H62:L68,B70:F88,H70:L100,B90:F100,B113:F119,H113:L119,H121:L151,B121:F139,B141:F151,B164:F170,H164:L170,B172:F190,H172:L202,B192:F202" _
).Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
Selection.Borders(xlEdgeLeft).LineStyle = xlNone
Selection.Borders(xlEdgeTop).LineStyle = xlNone
Selection.Borders(xlEdgeBottom).LineStyle = xlNone
Selection.Borders(xlEdgeRight).LineStyle = xlNone
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Range("B154:L203,B103:L152,B52:L101,B1:L50").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
Range("B38,B89,B140,D18:E18,J18:K18,D69,J69,D120,J120,D171,J171").Select
With Selection.Interior
.ColorIndex = 0
.Pattern = xlGray25
.PatternColorIndex = xlAutomatic
End With
Range("H7").Select
End Sub |