Sorry, Selections and Active cells are aplication level properties not Sheet level
try
xlSheet.Cells.RowHeight = 45
With xlSheet.Rows("1:1")
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
.Font.Bold = True
End With
xlSheet.Range("D1").Select
xlApp.ActiveCell.FormulaR1C1 = "Room No"
With xlApp.ActiveCell.Characters(Start:=1, Length:=7).Font
.FontStyle = "Regular"
.Size = 10
.StrikeThrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
End With
xlSheet.Range("E1").Select
xlApp.ActiveCell.FormulaR1C1 = "Fac/Div"
With xlApp.ActiveCell.Characters(Start:=1, Length:=7).Font
.FontStyle = "Regular"
.Size = 10
.StrikeThrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
End With
xlSheet.Range("F1").Select
xlApp.ActiveCell.FormulaR1C1 = "Dept Name"
With xlApp.ActiveCell.Characters(Start:=1, Length:=9).Font
.FontStyle = "Regular"
.Size = 10
.StrikeThrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
End With
xlSheet.Range("G1").Select
xlApp.ActiveCell.FormulaR1C1 = "Room Type"
With xlApp.ActiveCell.Characters(Start:=1, Length:=9).Font
.FontStyle = "Regular"
.Size = 10
.StrikeThrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
End With
xlSheet.Range("H1").Select
xlApp.ActiveCell.FormulaR1C1 = "Room Use"
With xlApp.ActiveCell.Characters(Start:=1, Length:=8).Font
.FontStyle = "Regular"
.Size = 10
.StrikeThrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
End With
xlSheet.Range("I1").Select
xlSheet.Columns("H:H").ColumnWidth = 25
xlSheet.Columns("G:G").ColumnWidth = 16.43
xlSheet.Columns("F:F").ColumnWidth = 33.29
xlSheet.Columns("E:E").ColumnWidth = 24
xlSheet.Cells.Select
xlApp.Selection.Borders(xlDiagonalDown).LineStyle = xlNone
xlApp.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With xlApp.Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With xlApp.Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With xlApp.Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With xlApp.Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With xlApp.Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With xlApp.Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
xlSheet.Columns("I:I").Select
xlSheet.Range("I11").Activate
xlApp.Selection.NumberFormat = "0.00"
xlSheet.Range("A2").Select
xlSheet.Columns("A:A").ColumnWidth = 17.71
xlSheet.Columns("A:A").ColumnWidth = 19.29
With xlApp.ActiveSheet.PageSetup
.PrintArea = "$A:$I"
.PrintTitleRows = ""
.PrintTitleColumns = ""
.LeftHeader = ""
.CenterHeader = "&""Arial,Bold""&12Facilities Manager " & Chr(10) & "Faculty Space"
.RightHeader = ""
.LeftFooter = "&D"
.CenterFooter = ""
.RightFooter = ""
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = 600
.CenterHorizontally = False
.CenterVertically = False
.Orientation = xlLandscape
.Draft = False
.PaperSize = xlPaperA4
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 500
.PrintTitleRows = "$1:$1"
.PrintTitleColumns = ""
.PrintErrors = xlPrintErrorsDisplayed
End With
xlApp.ActiveWorkbook.Save
xlApp.ActiveWorkbook.Close
xlApp.UserControl = False
xlApp.Quit
Set xlApp = Nothing
Peter