- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-22
|
Sub TEST()
Dim P$, F$, A$
P = ThisWorkbook.Path
Application.ScreenUpdating = False
Do
If F = "" Then F = Dir(P & "\*.csv") Else F = Dir
If F = "" Then Exit Do
A = Replace(Replace(F, "°ò·Ç¤é¡G", ""), ".csv", "")
With Workbooks.Open(P & "\" & F)
If InStr(A, "§¡È") Then
[B1:BK1].Clear
For j = 1 To 49: Cells(1, j + 1) = j: Next
End If
If InStr(A, "Á`ªí") Then [A:A].NumberFormatLocal = "yyyy/mm/dd" 'Á`ªí-¤é´Á-©T©wªø«×¸û¦nÀ˵ø
[B1:AX1].NumberFormatLocal = "00"
With [B1:AX1].Font: .Bold = True: .Size = 14: .ColorIndex = 5: End With
With [A:AX]
.Font.Name = "Arial"
.HorizontalAlignment = xlCenter
.EntireColumn.AutoFit
End With
[B2].Select
With ActiveWindow: .FreezePanes = True: .Zoom = 75: End With
.SaveAs Filename:=P & "\" & A & ".xls", FileFormat:=xlNormal, CreateBackup:=False
.Close 0
End With
Kill P & "\" & F
Loop
End Sub
================ |
|