Perhaps ! u can use this also

Code:
Sub test()
Dim sht As Worksheet
For Each sht In ThisWorkbook.Worksheets
        On Error Resume Next
        sht.Activate
        Cells.EntireColumn.AutoFit
    Next sht
End Sub