Sub HWSetupPrompt()
'
' HWSetupPrompt Macro
'
'
ActiveSheet.Name = "SetupSheet"
Columns("A:C").Select
Selection.ColumnWidth = 18.29
Range("A1").Select
ActiveCell.FormulaR1C1 = "HMK#"
Range("B1").Select
ActiveCell.FormulaR1C1 = "Chapter#"
Range("C1").Select
ActiveCell.FormulaR1C1 = "Problem #s In Order"
Range("A4").Value = "Name Below"
Range("A1:C2").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Range("C3:C4").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Range("A4:A5").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Range("A1").Select
ActiveSheet.Buttons.Add(100.5, 45, 96.75, 28.5).Select
Selection.OnAction = "PERSONAL.XLSB!HomeworkHeadersV2"
Selection.Characters.Text = "Ready!"
With Selection.Characters(Start:=1, Length:=6).Font
.Name = "Calibri"
.FontStyle = "Regular"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
End With
Range("C5").Select
ActiveSheet.Shapes.Range(Array("Button 1")).Select
With Selection.Font
.Name = "Calibri"
.FontStyle = "Regular"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 50
End With
With Selection.Font
.Name = "Calibri"
.FontStyle = "Regular"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleSingle
.ColorIndex = 50
End With
End Sub
Sub SheetCreation()
'
' SheetCreation Macro
'
'
Dim HK As String
Dim HKV As String
Dim CH As String
Dim CHV As String
Dim P As String
Dim P1 As String
Dim P2 As String
Dim P3 As String
Dim Name As String
HK = "Hmk# "
CH = "Larsen Ch. "
P = "Problem "
HKV = Worksheets("SetupSheet").Range("A2")
CHV = Worksheets("SetupSheet").Range("B2")
P1 = Worksheets("SetupSheet").Range("C2")
P2 = Worksheets("SetupSheet").Range("C3")
P3 = Worksheets("SetupSheet").Range("C4")
Name = Worksheets("SetupSheet").Range("A5")
Sheets.Add After:=ActiveSheet
Columns("A:G").Select
Selection.ColumnWidth = 11.57
Range("A1:B1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Selection.Merge
Range("A1:B1").Value = Name
Range("A2").Value = HK & HKV
Range("D1").Value = "EASC 1112-01"
Range("D2").Value = CH & CHV
Range("G1").Value = Format(Now(), "mm/dd/yyyy")
Range("A1:G2").Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
End With
Range("A1:G2").Select
Selection.Copy
Application.CutCopyMode = False
Selection.Copy
Sheets.Add After:=ActiveSheet
Selection.PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone _
, SkipBlanks:=False, Transpose:=False
Columns("A:G").Select
Range("A2").Activate
Application.CutCopyMode = False
Selection.ColumnWidth = 11.57
Range("A1:G2").Select
Selection.Copy
Sheets.Add After:=ActiveSheet
Selection.PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone _
, SkipBlanks:=False, Transpose:=False
Columns("A:G").Select
Range("A2").Activate
Application.CutCopyMode = False
Selection.ColumnWidth = 11.57
Range("A1:B1").Select
Range("G2").Value = P & P3
Sheets("Sheet3").Select
Range("G2").Value = P & P2
Sheets("Sheet2").Select
Range("G2").Value = P & P1
Range("A1:B1").Select
ActiveSheet.Name = Range("G2").Value
Sheets("Sheet3").Select
ActiveSheet.Name = Range("G2").Value
Sheets("Sheet4").Select
ActiveSheet.Name = Range("G2").Value
Application.DisplayAlerts = False
Sheets("SetupSheet").Select
ActiveWindow.SelectedSheets.Delete
Application.DisplayAlerts = True
End Sub