tpkelley_no
Board Regular
- Joined
- Oct 14, 2011
- Messages
- 183
- Office Version
- 2010
- Platform
- Windows
can this code be shorter?
Code:
Sheets("Original_Cost").Select
Columns("C:C").Select
Selection.EntireColumn.Hidden = True
Sheets("New_Cost").Select
Columns("C:C").Select
Selection.EntireColumn.Hidden = True
Sheets("Original_Budget").Select
Columns("C:C").Select
Selection.EntireColumn.Hidden = True
Sheets("Approved_Changes").Select
Columns("C:C").Select
Selection.EntireColumn.Hidden = True
Sheets("Current_Projections").Select
Columns("C:C").Select
Selection.EntireColumn.Hidden = True
Sheets("Cost_to_Date").Select
Columns("C:C").Select
Selection.EntireColumn.Hidden = True
' This will put a header on the Original_Cost Sheet
Sheets("Original_Cost").Select
ActiveCell.FormulaR1C1 = "Cost Code"
Range("A1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("B1").Select
ActiveCell.FormulaR1C1 = "Type"
Range("B1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("D1").Select
ActiveCell.FormulaR1C1 = "Description"
Range("D1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("E1").Select
ActiveCell.FormulaR1C1 = "Original Budget"
Range("E1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("F1").Select
ActiveCell.FormulaR1C1 = "Approved Owner Changes"
Range("F1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("G1").Select
ActiveCell.FormulaR1C1 = "Revised Budget"
Range("G1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("H1").Select
ActiveCell.FormulaR1C1 = "Current Projection"
Range("H1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("I1").Select
ActiveCell.FormulaR1C1 = "Variance"
Range("I1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("J1").Select
ActiveCell.FormulaR1C1 = "Total Job Cost to Date"
Range("J1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("K1").Select
ActiveCell.FormulaR1C1 = "Total Committed"
Range("K1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("L1").Select
ActiveCell.FormulaR1C1 = "Committed Cost JTD"
Range("L1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("M1").Select
ActiveCell.FormulaR1C1 = "Committed Cost Remaining"
Range("M1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("N1").Select
ActiveCell.FormulaR1C1 = "Non Commited Projection"
Range("N1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("O1").Select
ActiveCell.FormulaR1C1 = "Non committed Cost JTD"
Range("O1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
Range("P1").Select
ActiveCell.FormulaR1C1 = "Non Committed Cost Remaining"
Range("P1").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
End With
Selection.Font.Bold = True
End Sub