Public Sub subFormatWorksheet(Ws As Worksheet)
Dim WsActive As Worksheet
Set WsActive = ActiveSheet
With Ws.Range("A1").CurrentRegion
With .Rows(1)
.Interior.Color = RGB(213, 213, 213)
.Font.Bold = True
End With
.Font.Size = 14
.Font.Name = "Arial"
.RowHeight = 30
.VerticalAlignment = xlCenter
.IndentLevel = 1
.EntireColumn.AutoFit
End With
With Ws.Range("A1").CurrentRegion.Borders
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = vbBlack
End With
If Not ActiveWindow.FreezePanes Then
Ws.Activate
Range("A2").Select
ActiveWindow.FreezePanes = True
Ws.Activate.Activate
End If
End Sub