Beruflich Dokumente
Kultur Dokumente
'Traitement de la base
Selection.AutoFilter
"FOIE GRAS"
Columns("G:G").Select
ReplaceFormat:=False
ReplaceFormat:=False
"POISSON TRAD"
ReplaceFormat:=False
"MATIERE PREMIERE"
ReplaceFormat:=False
"HUILE"
ReplaceFormat:=False
"VETEMENTS PROFESSIONNELS"
Columns("E:E").Select
ReplaceFormat:=False
Selection.AutoFilter
Columns("C:C").Select
ReplaceFormat:=False
Selection.AutoFilter
Selection.AutoFilter
Range("A1").Select
'...'
Cells.Select
With Selection.Font
.Name = "Cambria"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.TintAndShade = 0
.ThemeFont = xlThemeFontMajor
End With
With Selection.Font
.Name = "Cambria"
.Size = 9
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.TintAndShade = 0
.ThemeFont = xlThemeFontMajor
End With
Selection.Font.Bold = True
Selection.Font.Bold = False
Selection.Font.Italic = True
Selection.Font.Italic = False
Selection.Font.Underline = xlUnderlineStyleSingle
Selection.Font.Underline = xlUnderlineStyleNone
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlTop
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlTop
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlTop
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlRight
.VerticalAlignment = xlTop
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlRight
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlRight
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Selection.NumberFormat = "#,##0"
Cells.Select
Selection.RowHeight = 14.25
Cells.Select
Selection.RowHeight = 15.75
Rows("1:1").Select
Selection.Font.Bold = True
Range("A1").Select
Range("B1").Select
Range("C1").Select
Range("D1").Select
Range("E1").Select
Range("F1").Select
Range("G1").Select
Range("H1").Select
Range("I1").Select
Range("J1").Select
Range("K1").Select
ActiveCell.FormulaR1C1 = "Q"
Range("L1").Select
Range("M1").Select
ActiveCell.FormulaR1C1 = "TVA"
Range("N1").Select
Range("O1").Select
ActiveCell.FormulaR1C1 = "MG"
Range("I1").Select
Range("I1").Select
Selection.Copy
Range("J1").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("A1:O1").Select
Range("O1").Activate
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorLight2
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
Range("E6").Select
Columns("A:A").ColumnWidth = 8.57
Range("A1").Select
Selection.AutoFilter
Range("A1").Select
Selection.AutoFilter
Columns("A:A").Select
Columns("B:B").Select
Selection.Copy
Application.CutCopyMode = False
Columns("L:L").Select
Selection.Copy
Range("A1").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.ClearContents
Range("A1").Select
ActiveCell.FormulaR1C1 = "KEY"
Columns("O:O").Select
Range("O1").Select
Range("A1").Select
Columns("A:A").ColumnWidth = 10.14
Columns("D:D").ColumnWidth = 10.29
Columns("C:C").ColumnWidth = 10
Columns("F:F").ColumnWidth = 9.14
Columns("H:H").ColumnWidth = 8.86
Columns("O:O").ColumnWidth = 10.29
Selection.AutoFilter
Columns("H:H").ColumnWidth = 10
Columns("F:F").ColumnWidth = 9.43
Columns("E:E").ColumnWidth = 10.29
Columns("B:B").ColumnWidth = 9.14
Columns("Q:Q").ColumnWidth = 9.29
Columns("P:P").ColumnWidth = 10.29
Range("O2").Select
ActiveCell.FormulaR1C1 = "=+RC[-2]-RC[-1]"
Range("O2").Select
Selection.Copy
Range("N2").Select
Selection.End(xlDown).Select
ActiveCell.Offset(0, 1).Range("A1").Select
Range(Selection, Selection.End(xlUp)).Select
SkipBlanks:=False, Transpose:=False
Columns("O:O").Select
Range("O141").Activate
Application.CutCopyMode = False
Selection.Copy
:=False, Transpose:=False
Range("A1").Select
Application.CutCopyMode = False
Selection.AutoFilter
Range("A4").Select
ActiveCell.FormulaR1C1 = "1"
Range("A4").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Selection.Font.Bold = True
Selection.Copy
Range("B2").Select
Range(Selection, Selection.End(xlDown)).Select
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("A4").Select
Selection.Copy
Range("D2").Select
Range(Selection, Selection.End(xlDown)).Select
SkipBlanks:=False, Transpose:=False
Range("A4").Select
Application.CutCopyMode = False
Selection.Copy
Range("F2").Select
Range(Selection, Selection.End(xlDown)).Select
SkipBlanks:=False, Transpose:=False
Range("A4").Select
Application.CutCopyMode = False
Selection.Copy
Range("H2").Select
Range(Selection, Selection.End(xlDown)).Select
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("A4").Select
Selection.Copy
Range("J2").Select
Range(Selection, Selection.End(xlDown)).Select
SkipBlanks:=False, Transpose:=False
Range("A1").Select
Application.CutCopyMode = False
Range("A6").Select
Selection.Copy
Range("A4").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveSheet.Name = "Base"
Range("A2").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[1]=3,CONCATENATE(RC[1],RC[3]),IF(OR(RC[1]=2,RC[6]=""consignes"",RC[6]=""deconsignes"")
,CONCATENATE(RC[1],RC[3],RC[5]),IF(OR(RC[6]=""fromagerie"",RC[6]=""charcuterie"",RC[6]=""boula
ngerie"",RC[6]=""patisserie""),CONCATENATE(RC[1],RC[3],RC[5],RC[7],RC[9]),IF(RC[2]=""DIVERS"",""
DIV"",CONCATENATE(RC[1],RC[3],RC[5],RC[7])))))"
Selection.Copy
Range("B2").Select
Selection.End(xlDown).Select
ActiveCell.Offset(0, -1).Range("A1").Select
Range(Selection, Selection.End(xlUp)).Select
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("A1").Select
Selection.AutoFilter
Range("A2").Select
ActiveWindow.FreezePanes = True
'Contrôle CA TTC
Sheets.Add After:=Sheets(Sheets.Count)
Cells.Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection.Font
.Name = "Cambria"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.TintAndShade = 0
.ThemeFont = xlThemeFontMajor
End With
With Selection.Font
.Name = "Cambria"
.Size = 9
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.TintAndShade = 0
.ThemeFont = xlThemeFontMajor
End With
Selection.NumberFormat = "#,##0.00"
Cells.Select
Selection.RowHeight = 15
Range("D6").Select
Range("D7").Select
Columns("D:D").ColumnWidth = 12.29
Range("D6").Select
Selection.Font.Bold = True
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorLight2
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Selection.Copy
Range("D7").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Copy
Range("D8").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("D7").Select
Range("D8").Select
Range("D6").Select
Selection.Copy
Range("E6:E8").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.ClearContents
Range("E6").Select
ActiveCell.Formula = "=SUM(base!m:m)"
Range("D7:E8").Select
Selection.Copy
Range("D10").Select
ActiveSheet.Paste
Application.CutCopyMode = False
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Selection.ClearContents
Range("D6").Select
Selection.Copy
Range("D5").Select
ActiveSheet.Paste
Application.CutCopyMode = False
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Range("D6").Select
ActiveCell.FormulaR1C1 = "DISCO"
Range("D7").Select
ActiveCell.FormulaR1C1 = "GOLD"
Range("D8").Select
ActiveCell.FormulaR1C1 = "ORKAISSE"
Range("D10").Select
Range("D10").Select
Selection.Copy
Range("D11").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("D11").Select
Range("D11").Select
Selection.Copy
Range("D12").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("D13").Select
Columns("D:D").EntireColumn.AutoFit
Range("E11").Select
Selection.Copy
Range("E12").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("G12").Select
Columns("D:D").ColumnWidth = 15.57
Columns("D:D").EntireColumn.AutoFit
Columns("D:D").ColumnWidth = 15.29
Columns("E:E").ColumnWidth = 13
Range("E10").Select
ActiveCell.FormulaR1C1 = "=+R[-4]C-R[-3]C"
Range("E11").Select
ActiveCell.FormulaR1C1 = "=+R[-3]C-R[-4]C"
Range("E12").Select
ActiveCell.FormulaR1C1 = "=+R[-4]C-R[-6]C"
Range("D5").Select
'Maquette
Sheets.Add After:=Sheets(Sheets.Count)
ActiveSheet.Name = "Maquette"
Range("D11").Select
Cells.Select
With Selection.Font
.Name = "Cambria"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.TintAndShade = 0
.ThemeFont = xlThemeFontMajor
End With
With Selection.Font
.Name = "Cambria"
.Size = 9
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.TintAndShade = 0
.ThemeFont = xlThemeFontMajor
End With
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlTop
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlRight
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlRight
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlRight
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Selection.NumberFormat = "#,##0"
Cells.Select
Selection.RowHeight = 18
Selection.RowHeight = 17.25
Range("D6").Select
Range("D7").Select
ActiveCell.FormulaR1C1 = "VINS"
Range("D8").Select
Range("D9").Select
Range("D10").Select
ActiveCell.FormulaR1C1 = "TABACS"
Range("D11").Select
Range("D12").Select
ActiveCell.FormulaR1C1 = "JUS"
Range("D13").Select
ActiveCell.FormulaR1C1 = "BOISSONS"
Range("D14").Select
Range("D15").Select
Range("D16").Select
Range("D17").Select
Range("D18").Select
Range("D19").Select
ActiveCell.FormulaR1C1 = "SUCRE"
Range("D20").Select
ActiveCell.FormulaR1C1 = "GATEAUX-DESSERT"
Range("D21").Select
Range("D22").Select
ActiveCell.FormulaR1C1 = "PETIT-DEJEUNER"
Range("D23").Select
ActiveCell.FormulaR1C1 = "CONFISERIE"
Range("D24").Select
ActiveCell.FormulaR1C1 = "ALIMENTSPECIAUX"
Range("D25").Select
ActiveCell.FormulaR1C1 = "BISCUITAPERITIF"
Range("D26").Select
Range("D27").Select
ActiveCell.FormulaR1C1 = "LAVAGE"
Range("D28").Select
ActiveCell.FormulaR1C1 = "ENTRETIEN"
Range("D29").Select
ActiveCell.FormulaR1C1 = "DROGUERIE"
Range("D30").Select
Range("D31").Select
ActiveCell.FormulaR1C1 = "HYGIENE"
Range("D32").Select
ActiveCell.FormulaR1C1 = "BEAUTE"
Range("D33").Select
ActiveCell.FormulaR1C1 = "CAPILLAIRE"
Range("D34").Select
ActiveCell.FormulaR1C1 = "PARAPHARMACIE"
Range("D35").Select
ActiveCell.FormulaR1C1 = "CONSIGNES"
Range("D36").Select
ActiveCell.FormulaR1C1 = "DECONSIGNES"
Range("D37").Select
ActiveCell.FormulaR1C1 = "FRUITS"
Range("D38").Select
ActiveCell.FormulaR1C1 = "LEGUMES"
Range("D39").Select
Range("D40").Select
Range("D41").Select
Range("D42").Select
Range("D43").Select
Range("D44").Select
Range("D45").Select
Range("D46").Select
Range("D47").Select
Range("D49").Select
Range("D50").Select
Range("D51").Select
ActiveCell.FormulaR1C1 = "OLIVES"
Range("D52").Select
ActiveCell.FormulaR1C1 = "EPICES"
Range("D53").Select
Range("D54").Select
Range("D55").Select
ActiveCell.FormulaR1C1 = "KHLII"
Range("D56").Select
ActiveCell.FormulaR1C1 = "PATES/SEMOULES"
Range("D57").Select
Range("D58").Select
Range("D59").Select
ActiveCell.FormulaR1C1 = "JUS"
Range("D60").Select
ActiveCell.FormulaR1C1 = "LAIT"
Range("D61").Select
ActiveCell.FormulaR1C1 = "OEUFS"
Range("D62").Select
Range("D63").Select
ActiveCell.FormulaR1C1 = "LEVURE"
Range("D64").Select
Range("D65").Select
Range("D66").Select
Range("D67").Select
ActiveCell.FormulaR1C1 = "FRUITS"
Range("D68").Select
ActiveCell.FormulaR1C1 = "POIS/VIAN/CRUST"
Range("D69").Select
Range("D70").Select
Range("D71").Select
Range("D72").Select
ActiveCell.FormulaR1C1 = "AUTR/FROMAG/LS"
Range("D73").Select
Range("D74").Select
Range("D76").Select
Range("D77").Select
Range("D78").Select
Range("D79").Select
ActiveCell.FormulaR1C1 = "SAURISSERIE"
Range("D80").Select
ActiveCell.FormulaR1C1 = "PATES"
Range("D81").Select
Range("D82").Select
Range("D83").Select
ActiveCell.FormulaR1C1 = "PIZZA"
Range("D84").Select
Range("D85").Select
ActiveCell.FormulaR1C1 = "AUTRES"
Range("D86").Select
ActiveCell.FormulaR1C1 = "P.MAROC.SALE"
Range("D87").Select
Range("D88").Select
ActiveCell.FormulaR1C1 = "P.NEGOCE DIVERS"
Range("D89").Select
ActiveCell.FormulaR1C1 = "ENFANT"
Range("D90").Select
ActiveCell.FormulaR1C1 = "BEBE"
Range("D91").Select
ActiveCell.FormulaR1C1 = "FEMME"
Range("D92").Select
ActiveCell.FormulaR1C1 = "HOMME"
Range("D93").Select
ActiveCell.FormulaR1C1 = "CHAUSSURE"
Range("D94").Select
ActiveCell.FormulaR1C1 = "MENAGE"
Range("D95").Select
ActiveCell.FormulaR1C1 = "AUTO-BRICO"
Range("D96").Select
Range("D97").Select
ActiveCell.FormulaR1C1 = "LOISIRS-EXTER"
Range("D98").Select
Range("D99").Select
ActiveCell.FormulaR1C1 = "MUTIMEDIA"
Range("D100").Select
Range("D101").Select
ActiveCell.FormulaR1C1 = "PROFESSIONNEL"
Range("D102").Select
ActiveCell.FormulaR1C1 = "BLANC"
Range("D103").Select
ActiveCell.FormulaR1C1 = "AMEUBLEMENT"
Range("D104").Select
Range("D105").Select
ActiveCell.FormulaR1C1 = "RESTAURANT"
Range("D106").Select
ActiveCell.FormulaR1C1 = "DIVERS"
Range("A1").Select
Columns("D:D").EntireColumn.AutoFit
Columns("D:D").ColumnWidth = 31.14
Columns("G:G").EntireColumn.AutoFit
Range("D6").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D6:D10").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D11:D13").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D14:D19").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D20:D25").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D26:D30").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D31:D34").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D35:D36").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D37:D38").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D39:D41").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D42:D46").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D47:D50").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D51:D56").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D57:D63").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D64:D69").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D70:D72").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D73:D80").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D81:D85").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D86:D88").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D89:D93").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D94:D97").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D98:D105").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D98:D101").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("D102:D103").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("E49").Select
Range("d6").Select
Columns("D:D").EntireColumn.AutoFit
Columns("D:D").EntireColumn.AutoFit
Columns("D:D").EntireColumn.AutoFit
Columns("D:D").ColumnWidth = 31.71
Columns("E:E").ColumnWidth = 0.5
Range("D6").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Range("F6").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Copy
Range("G6").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Copy
Range("H6").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("F6").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("A1").Select
Columns("F:F").ColumnWidth = 15.86
Columns("F:F").ColumnWidth = 14.29
Columns("F:F").Select
Selection.Copy
Columns("G:H").Select
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("F4").Select
Range("G4").Select
Range("H4").Select
ActiveCell.FormulaR1C1 = "MB"
Range("F4:H4").Select
Range("H4").Activate
Selection.Font.Bold = True
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlHairline
End With
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorLight2
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Range("F6:H106").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlHairline
End With
Range("D5").Select
Selection.ClearContents
Range("C6").Select
Rows("5:5").RowHeight = 3
Range("A8").Select
Rows("4:4").RowHeight = 21
Columns("F:F").ColumnWidth = 13
Columns("F:H").Select
Selection.ColumnWidth = 13
Range("D6:D34").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent1
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
Range("N4:N7").Select
Range("D37:D69").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent1
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
Range("D106").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent1
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
Range("A1").Select
Range("B35").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent3
.TintAndShade = 0.599993896298105
.PatternTintAndShade = 0
End With
Range("D35:D36").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent3
.TintAndShade = 0.599993896298105
.PatternTintAndShade = 0
End With
Range("D89:D103").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent3
.TintAndShade = 0.599993896298105
.PatternTintAndShade = 0
End With
Range("B104").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0.599993896298105
.PatternTintAndShade = 0
End With
Range("D104:D105").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0.599993896298105
.PatternTintAndShade = 0
End With
Range("B86").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0.399975585192419
.PatternTintAndShade = 0
End With
Range("D70:D88").Select
Range("D88").Activate
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0.399975585192419
.PatternTintAndShade = 0
End With
Range("K84").Select
Columns("B:B").Select
Range("B85").Activate
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Range("F6").Select
Columns("B:B").Select
Selection.Delete Shift:=xlToLeft
Selection.Delete Shift:=xlToLeft
Range("B7").Select
Columns("A:A").ColumnWidth = 0.5
Rows("1:2").Select
Selection.Delete Shift:=xlUp
Range("B5").Select
Rows("1:1").RowHeight = 5.25
Range("D4").Select
ActiveWindow.FreezePanes = True
Range("I6").Select
ActiveCell.FormulaR1C1 = "D"
Range("I7").Select
ActiveCell.FormulaR1C1 = "R"
Range("I8").Select
ActiveCell.FormulaR1C1 = "F"
Range("I6").Select
ActiveCell.FormulaR1C1 = "Département"
Range("I7").Select
ActiveCell.FormulaR1C1 = "Rayon"
Range("I8").Select
ActiveCell.FormulaR1C1 = "Famille"
Range("I8").Select
Selection.Copy
Range("I9").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "S-Famille"
Range("I10").Select
Columns("I:I").ColumnWidth = 11.43
Range("I6:I9").Select
Selection.Font.Bold = True
Range("B6").Select
Selection.Copy
Range("I8").Select
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
ActiveWindow.LargeScroll Down:=1
Range("I28").Select
ActiveWindow.LargeScroll Down:=1
Range("I48").Select
ActiveWindow.LargeScroll Down:=1
Range("B74").Select
Selection.Copy
Range("I9").Select
Application.CutCopyMode = False
Application.CutCopyMode = False
ActiveWindow.LargeScroll Down:=1
Range("I29").Select
ActiveWindow.LargeScroll Down:=1
Range("I49").Select
ActiveWindow.LargeScroll Down:=1
Range("I69").Select
ActiveWindow.LargeScroll Down:=-1
Range("I49").Select
ActiveWindow.LargeScroll Down:=-1
Range("B34").Select
Selection.Copy
Range("I7").Select
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("B103").Select
Selection.Copy
Range("I6").Select
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("B68").Select
Selection.Copy
Range("I9").Select
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("I5:I9").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
Range("I6:I9").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
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
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlHairline
End With
Range("I6:I12").Select
Selection.Font.Bold = True
Range("K9").Select
Columns("I:I").ColumnWidth = 12.29
Range("I6").Select
Selection.Copy
Range("I5").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "Légende"
Range("I5").Select
Range("I5").Select
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Range("I10").Select
ActiveCell.FormulaR1C1 = "Divers"
Range("I10").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.249977111117893
.PatternTintAndShade = 0
End With
Range("I6:I10").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
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("I6:I10").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlHairline
End With
Range("J12").Select
Range("B104").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.249977111117893
.PatternTintAndShade = 0
End With
Range("d4").Select
ActiveWindow.FreezePanes = False
Columns("B:B").Select
Columns("C:C").Select
Selection.Copy
Range("B1").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.ClearContents
Selection.Font.Bold = True
Selection.Font.Bold = False
Selection.Font.Bold = True
Range("B6").Select
Columns("B:B").ColumnWidth = 13.43
Range("E4").Select
ActiveWindow.FreezePanes = True
Range("B4:C4").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlUp)).Select
Range("B5:C5").Select
Range("C5").Activate
Range(Selection, Selection.End(xlDown)).Select
Range("B5:C104").Select
Range("C5").Activate
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlEdgeTop).LineStyle = xlNone
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlHairline
End With
Range("C9").Select
Columns("B:B").ColumnWidth = 11.57
Range("B4").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlEdgeBottom).LineStyle = xlNone
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlHairline
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("J17").Select
Columns("B:B").ColumnWidth = 11.14
End Sub
Sub TRT_EXT_VENTES_2()
Range("B4").Select
ActiveCell.FormulaR1C1 = "11010010"
Range("B5").Select
ActiveCell.FormulaR1C1 = "11010011"
Range("B6").Select
ActiveCell.FormulaR1C1 = "11010012"
Range("B7").Select
ActiveCell.FormulaR1C1 = "11010013"
Range("B8").Select
ActiveCell.FormulaR1C1 = "11010014"
Range("B9").Select
ActiveCell.FormulaR1C1 = "11011020"
Range("B10").Select
ActiveCell.FormulaR1C1 = "11011021"
Range("B11").Select
ActiveCell.FormulaR1C1 = "11011022"
Range("B12").Select
ActiveCell.FormulaR1C1 = "11012030"
Range("B13").Select
ActiveCell.FormulaR1C1 = "11012031"
Range("B14").Select
ActiveCell.FormulaR1C1 = "11012032"
Range("B15").Select
ActiveCell.FormulaR1C1 = "11012033"
Range("B16").Select
ActiveCell.FormulaR1C1 = "11012034"
Range("B17").Select
ActiveCell.FormulaR1C1 = "11012035"
Range("B18").Select
ActiveCell.FormulaR1C1 = "11013040"
Range("B19").Select
ActiveCell.FormulaR1C1 = "11013041"
Range("B20").Select
ActiveCell.FormulaR1C1 = "11013042"
Range("B21").Select
ActiveCell.FormulaR1C1 = "11013043"
Range("B22").Select
ActiveCell.FormulaR1C1 = "11013044"
Range("B23").Select
ActiveCell.FormulaR1C1 = "11013045"
Range("B24").Select
ActiveCell.FormulaR1C1 = "11014050"
Range("B25").Select
ActiveCell.FormulaR1C1 = "11014051"
Range("B26").Select
ActiveCell.FormulaR1C1 = "11014052"
Range("B27").Select
ActiveCell.FormulaR1C1 = "11014053"
Range("B28").Select
ActiveCell.FormulaR1C1 = "11014054"
Range("B29").Select
ActiveCell.FormulaR1C1 = "11015060"
Range("B30").Select
ActiveCell.FormulaR1C1 = "11015061"
Range("B31").Select
ActiveCell.FormulaR1C1 = "11015062"
Range("B32").Select
ActiveCell.FormulaR1C1 = "11015063"
Range("B33").Select
ActiveCell.FormulaR1C1 = "110910"
Range("B34").Select
ActiveCell.FormulaR1C1 = "110920"
Range("B35").Select
ActiveCell.FormulaR1C1 = "12010010"
Range("B36").Select
ActiveCell.FormulaR1C1 = "12010011"
Range("B37").Select
ActiveCell.FormulaR1C1 = "12011020"
Range("B38").Select
ActiveCell.FormulaR1C1 = "12011021"
Range("B39").Select
ActiveCell.FormulaR1C1 = "12011024"
Range("B40").Select
ActiveCell.FormulaR1C1 = "12012030"
Range("B41").Select
ActiveCell.FormulaR1C1 = "12012031"
Range("B42").Select
ActiveCell.FormulaR1C1 = "12012032"
Range("B43").Select
ActiveCell.FormulaR1C1 = "12012033"
Range("B44").Select
ActiveCell.FormulaR1C1 = "12012034"
Range("B45").Select
ActiveCell.FormulaR1C1 = "120200100"
Range("B46").Select
ActiveCell.FormulaR1C1 = "12020097"
Range("B47").Select
ActiveCell.FormulaR1C1 = "12020098"
Range("B48").Select
ActiveCell.FormulaR1C1 = "12020099"
Range("B49").Select
ActiveCell.FormulaR1C1 = "12019010"
Range("B50").Select
ActiveCell.FormulaR1C1 = "12019011"
Range("B51").Select
ActiveCell.FormulaR1C1 = "12019012"
Range("B52").Select
ActiveCell.FormulaR1C1 = "12019013"
Range("B53").Select
ActiveCell.FormulaR1C1 = "12019014"
Range("B54").Select
ActiveCell.FormulaR1C1 = "12019015"
Range("B55").Select
ActiveCell.FormulaR1C1 = "12013040"
Range("B56").Select
ActiveCell.FormulaR1C1 = "12013041"
Range("B57").Select
ActiveCell.FormulaR1C1 = "12013042"
Range("B58").Select
ActiveCell.FormulaR1C1 = "12013043"
Range("B59").Select
ActiveCell.FormulaR1C1 = "12013044"
Range("B60").Select
ActiveCell.FormulaR1C1 = "12013045"
Range("B61").Select
ActiveCell.FormulaR1C1 = "12013046"
Range("B62").Select
ActiveCell.FormulaR1C1 = "12014050"
Range("B63").Select
ActiveCell.FormulaR1C1 = "12014051"
Range("B64").Select
ActiveCell.FormulaR1C1 = "12014052"
Range("B65").Select
ActiveCell.FormulaR1C1 = "12014053"
Range("B66").Select
ActiveCell.FormulaR1C1 = "12014054"
Range("B67").Select
ActiveCell.FormulaR1C1 = "12014055"
Range("B68").Select
ActiveCell.FormulaR1C1 = "12015060600"
Range("B69").Select
ActiveCell.FormulaR1C1 = "12015060601"
Range("B70").Select
ActiveCell.FormulaR1C1 = "12015060602"
Range("B71").Select
ActiveCell.FormulaR1C1 = "12016070702"
Range("B72").Select
ActiveCell.FormulaR1C1 = "12016070703"
Range("B73").Select
ActiveCell.FormulaR1C1 = "12016070704"
Range("B74").Select
ActiveCell.FormulaR1C1 = "12016070705"
Range("B75").Select
ActiveCell.FormulaR1C1 = "12016070706"
Range("B76").Select
ActiveCell.FormulaR1C1 = "12016070707"
Range("B77").Select
ActiveCell.FormulaR1C1 = "12016070708"
Range("B78").Select
ActiveCell.FormulaR1C1 = "12016070709"
Range("B79").Select
ActiveCell.FormulaR1C1 = "12017080800"
Range("B80").Select
ActiveCell.FormulaR1C1 = "12017080801"
Range("B81").Select
ActiveCell.FormulaR1C1 = "12017080802"
Range("B82").Select
ActiveCell.FormulaR1C1 = "12017080803"
Range("B83").Select
ActiveCell.FormulaR1C1 = "12017080804"
Range("B84").Select
ActiveCell.FormulaR1C1 = "12018090900"
Range("B85").Select
ActiveCell.FormulaR1C1 = "12018090901"
Range("B86").Select
ActiveCell.FormulaR1C1 = "12018090902"
Range("B87").Select
ActiveCell.FormulaR1C1 = "230100"
Range("B88").Select
ActiveCell.FormulaR1C1 = "230110"
Range("B89").Select
ActiveCell.FormulaR1C1 = "230120"
Range("B90").Select
ActiveCell.FormulaR1C1 = "230130"
Range("B91").Select
ActiveCell.FormulaR1C1 = "230140"
Range("B92").Select
ActiveCell.FormulaR1C1 = "240100"
Range("B93").Select
ActiveCell.FormulaR1C1 = "240110"
Range("B94").Select
ActiveCell.FormulaR1C1 = "240120"
Range("B95").Select
ActiveCell.FormulaR1C1 = "240130"
Range("B96").Select
ActiveCell.FormulaR1C1 = "250100"
Range("B97").Select
ActiveCell.FormulaR1C1 = "250110"
Range("B98").Select
ActiveCell.FormulaR1C1 = "250120"
Range("B99").Select
ActiveCell.FormulaR1C1 = "250220"
Range("B100").Select
ActiveCell.FormulaR1C1 = "280100"
Range("B101").Select
ActiveCell.FormulaR1C1 = "280110"
Range("B102").Select
ActiveCell.FormulaR1C1 = "360"
Range("B103").Select
ActiveCell.FormulaR1C1 = "370"
Range("B104").Select
ActiveCell.FormulaR1C1 = "DIV"
Range("E4").Select
Columns("B:B").Select
Selection.NumberFormat = "0"
Range("C8").Select
Columns("B:B").EntireColumn.AutoFit
Columns("B:B").EntireColumn.AutoFit
Columns("B:B").EntireColumn.AutoFit
Range("C112").Select
ActiveWindow.LargeScroll Down:=-1
Range("C92").Select
Columns("B:B").ColumnWidth = 12.43
Range("E4").Select
ActiveCell.Formula = "=Sumif(Base!a:a,Maquette!B4,Base!m:m)"
Range("f4").Select
ActiveCell.Formula = "=Sumif(Base!a:a,Maquette!B4,Base!o:o)"
Range("g4").Select
ActiveCell.Formula = "=Sumif(Base!a:a,Maquette!B4,Base!q:q)"
Range("E4:G4").Select
Selection.Copy
Range("C4").Select
Selection.End(xlDown).Select
Range("E104:G104").Select
Range(Selection, Selection.End(xlUp)).Select
Range("E5:G104").Select
Range("E104").Activate
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("E4").Select
Range("E3").Select
ActiveCell.FormulaR1C1 = "=SUM(R[1]C:R[101]C)-SUM(Base!C[8])"
Range("F3").Select
ActiveCell.FormulaR1C1 = "=SUM(R[1]C:R[101]C)-SUM(Base!C[9])"
Range("G3").Select
ActiveCell.FormulaR1C1 = "=SUM(R[1]C:R[101]C)-SUM(Base!C[10])"
Rows("4:4").Select
Range("E4").Select
ActiveCell.FormulaR1C1 = "=IF(R[-1]C=0,"""","""")"
Range("E4").Select
ActiveCell.FormulaR1C1 = "=IF(R[-1]C=0,""OK"",""écart"")"
Range("L15").Select
ActiveCell.FormulaR1C1 = "=UPPER(""é"")"
Range("L15").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Range("E4").Select
ActiveCell.FormulaR1C1 = "=IF(R[-1]C=0,""OK"",""Écart"")"
Range("E4").Select
Selection.Copy
Range("F4").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Copy
Range("G4").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("L15").Select
Selection.ClearContents
ActiveWindow.FreezePanes = False
Rows("5:5").Select
Rows("3:5").Select
Range("B3").Activate
Selection.RowHeight = 14.25
Rows("3:5").Select
Selection.RowHeight = 19.5
Rows("1:1").Select
Selection.Copy
Range("A5").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("E3:G4").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlHairline
End With
Range("I13").Select
Range("E3:G4").Select
Selection.Font.Bold = True
Range("H10").Select
ActiveCell.FormulaR1C1 = ""
Range("E3:G4").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlHairline
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlHairline
End With
Range("J18").Select
Range("E3:G3").Select
Formula1:="=0"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 5287936
.TintAndShade = 0
End With
Selection.FormatConditions(1).StopIfTrue = True
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0.399975585192419
.PatternTintAndShade = 0
End With
Range("E4:G4").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0.399975585192419
.PatternTintAndShade = 0
End With
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
With Selection.Font
.ColorIndex = xlAutomatic
.TintAndShade = 0
End With
TextOperator:=xlContains
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 5287936
.TintAndShade = 0
End With
Selection.FormatConditions(1).StopIfTrue = True
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
Range("H9").Select
Rows("3:3").RowHeight = 16.5
Rows("4:4").RowHeight = 17.25
Rows("5:5").RowHeight = 3
Range("E6").Select
ActiveWindow.FreezePanes = True
Range("E6").Select
Range("E3:G4").Select
With Selection.Font
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
End With
Range("J7:J13").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
Range("J7").Select
Selection.Cut
Range("B2").Select
ActiveSheet.Paste
Range("J8").Select
Selection.Cut
Range("C2").Select
ActiveSheet.Paste
Range("J9").Select
Selection.Cut
Range("B3").Select
ActiveSheet.Paste
Range("J10").Select
Selection.Cut
Range("C3").Select
ActiveSheet.Paste
Range("J11").Select
Selection.Cut
Range("B4").Select
ActiveSheet.Paste
Range("J12").Select
Selection.Cut
Range("C4").Select
ActiveSheet.Paste
ActiveWindow.FreezePanes = False
Rows("2:4").Select
Selection.RowHeight = 20
Range("B2").Select
Selection.Font.Underline = xlUnderlineStyleSingle
Range("B2:C4").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("B2").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("B2").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("B2:C4").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
Columns("E:G").Select
Selection.ColumnWidth = 12
Range("C1").Select
Columns("B:B").EntireColumn.AutoFit
Columns("C:C").EntireColumn.AutoFit
Range("C7").Select
Columns("B:B").ColumnWidth = 13
Columns("C:C").ColumnWidth = 32.14
Range("C9").Select
Columns("D:D").ColumnWidth = 0.33
Range("A6").Select
ActiveWindow.FreezePanes = True
Range("A6").Select
Sheets("Contrôle CA TTC").Select
Range("E7").Select
Sheets("Maquette").Select
Rows("101:101").Select
Range("B101").Select
ActiveCell.FormulaR1C1 = "250210"
Range("C101").Select
ActiveCell.FormulaR1C1 = "TRANSPORT"
Range("E100:G100").Select
Selection.Copy
Range("E101").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("E101").Select
Sheets("Maquette").Select
Range("E6").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
ActiveWindow.ScrollRow = 88
ActiveWindow.ScrollRow = 87
ActiveWindow.ScrollRow = 84
ActiveWindow.ScrollRow = 78
ActiveWindow.ScrollRow = 71
ActiveWindow.ScrollRow = 58
ActiveWindow.ScrollRow = 40
ActiveWindow.ScrollRow = 29
ActiveWindow.ScrollRow = 22
ActiveWindow.ScrollRow = 19
ActiveWindow.ScrollRow = 17
ActiveWindow.ScrollRow = 14
ActiveWindow.ScrollRow = 11
ActiveWindow.ScrollRow = 9
ActiveWindow.ScrollRow = 6
Sheets("base").Select
End Sub
Sub TRT_EXT_VENTES_VF()
Dim r As Integer
r = MsgBox("Êtes-vous sûr de bien vouloir traiter l'extraction DISCOVERER 'CA PAR ARTICLE ET
PERIODE' ?", vbYesNo + vbQuestion, "Vraiment ?")
If r = 6 Then
Application.Run "personal.xlsb!TRT_EXT_VENTES_1"
Application.Run "personal.xlsb!TRT_EXT_VENTES_2"
MsgBox "Traitement extraction DISCOVERER effectué avec succès !" & vbNewLine & vbNewLine & "
Contrôles à effectuer :" & vbNewLine & vbNewLine & " . Feuille 'Contrôle CA TTC' : Saisir le CA TTC
GOLD et ORKAISSE." & vbNewLine & " . Feuille 'Maquette' : Visualiser le 'OK' sur les cellules 'E4',
'F4' et 'G4'.", vbInformation, "Done !"
Else
End If
End Sub