Sub test()
Dim wb As Workbook, MyPath$, MyFile$
MyPath = ThisWorkbook.Path & "\"
MyFile = Dir(MyPath & "*.xls*")
Application.ScreenUpdating = False
Do While MyFile <> ""
If MyFile <> ThisWorkbook.Name Then
Set wb = Workbooks.Open(MyPath & MyFile)
wb.Sheets(1).Columns("A").ColumnWidth = 10
wb.Close True
End If
MyFile = Dir
Loop
Application.ScreenUpdating = True
MsgBox "OK"
End Sub
温馨提示:答案为网友推荐,仅供参考