123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- Sub HeaderBlue()
- With Selection.Interior
- .Pattern = xlSolid
- .PatternColorIndex = xlAutomatic
- .ThemeColor = xlThemeColorLight2
- .TintAndShade = 0.799981688894314
- .PatternTintAndShade = 0
- End With
- Call FormatHeaderFont
- Call FormatBorders
- End Sub
- Sub HeaderGrey()
- With Selection.Interior
- .Pattern = xlSolid
- .PatternColorIndex = xlAutomatic
- .ThemeColor = xlThemeColorDark1
- .TintAndShade = -0.149998474074526
- .PatternTintAndShade = 0
- End With
- Call FormatHeaderFont
- Call FormatBorders
- End Sub
- Private Sub FormatHeaderFont()
- With Selection.Font
- .Color = RGB(0, 0, 0)
- .Bold = True
- .Name = "Arial"
- .Size = "8"
- End With
- End Sub
-
- Private Sub FormatBorders()
- ' Border Diagonal
- Selection.Borders(xlDiagonalDown).LineStyle = xlNone
- Selection.Borders(xlDiagonalUp).LineStyle = xlNone
- ' Border Left
- With Selection.Borders(xlEdgeLeft)
- .LineStyle = xlContinuous
- .ColorIndex = xlAutomatic
- .TintAndShade = 0
- .Weight = xlThin
- End With
- 'Border Right
- With Selection.Borders(xlEdgeRight)
- .LineStyle = xlContinuous
- .ColorIndex = xlAutomatic
- .TintAndShade = 0
- .Weight = xlThin
- End With
-
- 'Border Inside
- With Selection.Borders(xlInsideVertical)
- .LineStyle = xlContinuous
- .ColorIndex = xlAutomatic
- .TintAndShade = 0
- .Weight = xlThin
- End With
-
- 'Border Top
- With Selection.Borders(xlEdgeTop)
- .LineStyle = xlContinuous
- .ColorIndex = xlAutomatic
- .TintAndShade = 0
- .Weight = xlMedium
- End With
-
- 'Border Bottom
- With Selection.Borders(xlEdgeBottom)
- .LineStyle = xlContinuous
- .ColorIndex = xlAutomatic
- .TintAndShade = 0
- .Weight = xlThin
- End With
-
-
- End Sub
|