Sub FormatExcel(FileName As String)
'Format excel file
Set objapp = CreateObject("Excel.Application")
objapp.Visible = True
Set wb = objapp.workbooks.Open(FileName, True, False)
'select all worksheets & cells In turn
For Each ws In wb.worksheets
'amend font To whatever
With ws
.Columns.autofit
.Columns.Font.Name = "Arial"
.Columns.Font.Size = 12
.Range("A1").Select
End With
Next 'next worksheet
wb.Save
objapp.Quit
Set objapp = Nothing
End Sub