Sub SetUp()
' Format sheet
Range("A1").FormulaR1C1 = "Class Start Date"
Range("B1").NumberFormat = "m/d/yyyy"
Range("A2").FormulaR1C1 = "Course Length (in weeks)"
Range("A5").FormulaR1C1 = "Days to Meet"
Range("B4").FormulaR1C1 = "Sun"
Range("C4").FormulaR1C1 = "Mon"
Range("D4").FormulaR1C1 = "Tue"
Range("E4").FormulaR1C1 = "Wed"
Range("F4").FormulaR1C1 = "Thu"
Range("G4").FormulaR1C1 = "Fri"
Range("H4").FormulaR1C1 = "Sat"
With Range("B5:H5").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Yes,No"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
With Range("B4:H5")
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Range("B4:H4")
.Font.Bold = True
.Borders(xlDiagonalDown).LineStyle = xlNone
.Borders(xlDiagonalUp).LineStyle = xlNone
With .Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
With .Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
With .Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
With .Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
With .Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
With .Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
End With
With Range("B4:H4").Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.149998474074526
.PatternTintAndShade = 0
End With
Range("A7").Select
ActiveCell.FormulaR1C1 = "Date"
With Range("A7")
.Font.Bold = True
.Font.Underline = xlUnderlineStyleSingle
.Font.Italic = True
End With
Columns("A:A").NumberFormat = "m/d/yyyy"
Range("A7").FormulaR1C1 = "Dates"
Cells.EntireColumn.AutoFit
Columns("B:H").ColumnWidth = 9
' Enter test data
Range("B1") = "8/6/2018"
Range("B2") = "14"
Range("C5") = "Yes"
Range("E5") = "Yes"
Range("G5") = "Yes"
End Sub