- ©«¤l
- 315
- ¥DÃD
- 51
- ºëµØ
- 0
- ¿n¤À
- 367
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-9-29
- ³Ì«áµn¿ý
- 2021-10-12
|
¥»©«³Ì«á¥Ñ Airman ©ó 2019-6-2 11:18 ½s¿è
¦^´_ 7# Scott090
Scott090¤j¤j :
´ú¸Õ³ø§i:
©@°Ø¦â¦r=·s¼Wªº¶Q¸Ñµ{¦¡½X
ÂŦâ¦r=¿ï¾Ü©Ê°õ¦æªºµ{¦¡½X
»Ý¨D=ÀɮצWºÙ¦³§¡È®É¡A«h°õ¦æÂŦâ¦rªºµ{¦¡½X¡F¦pªGÀɮצWºÙ¤º¨S¦³§¡È®É¡A´N¸õ¹LÂŦâ¦rªºµ{¦¡½X(§Y¤£°õ¦æ)¡C
¥Ø«e¥H¤U¦Cªºµ{¦¡½X=µL½×ÀɮצWºÙ¤º¨S¦³©Î¨S¦³§¡Èªº¤å¦r¡A¥þ³¡³£¦³°õ¦æÂŦâ¦rªºµ{¦¡½X¡C
½Ð°Ý : n¦p¦ó×¥¿?
ÁÂÁ±z^^
Sub Ex()
Dim Path As String, A As String, j%
Path = ThisWorkbook.Path '½Ðקאּ§Aªº¸ê®Æ§¨
A = Dir(Path & "\*.CSV")
Do While A <> ""
Name Path & "\" & A As Path & "\" & Replace(A, "°ò·Ç¤é¡G", "")
A = Replace(A, "°ò·Ç¤é¡G", "")
With Workbooks.Open(Path & "\" & A)
.SaveAs Filename:=Path & "\" & Replace(A, ".csv", ".xls"), FileFormat:=xlNormal
If UBound(Split("???§¡È§¡È???", "§¡È")) > 1 Then
[B1:BK1].Clear
For j = 1 To 49 '§¡È
Cells(1, j + 1) = j
Next
End If
With [B1:AX1]
.Font.Bold = True
.Font.Size = 14
.NumberFormatLocal = "00"
.Font.ColorIndex = 5
End With
Columns("A:AX").Font.Name = "Arial"
Columns("A:AX").HorizontalAlignment = xlCenter
Columns("A:AX").EntireColumn.AutoFit
[B2].Select
ActiveWindow.FreezePanes = True
ActiveWindow.Zoom = 75
.Close True
End With
Kill Path & "\" & A
A = Dir
Loop
End Sub |
|