COPY¤u§@¶¤ÎÀˬdÀx¦s®æ¤º®e
- ©«¤l
- 176
- ¥DÃD
- 98
- ºëµØ
- 0
- ¿n¤À
- 279
- ÂI¦W
- 0
- §@·~¨t²Î
- window 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-2-17
- ³Ì«áµn¿ý
- 2020-4-8
|
COPY¤u§@¶¤ÎÀˬdÀx¦s®æ¤º®e
½Ð°ÝYªG·Q±NBOOK1.XLS ¤ºªº©Ò¦³sheets COPY ¨ì BOOK2.XLS¤º
¤Î ÀˬdÀx¦s®æA1 ªº¤º®e¥Ñ¥k¦V¥ª¼Æ¬O§_µ¥©ó"ABC"
À³¸Ó¦p¦ó¼g©O, ½Ð«ü±Ð |
|
|
|
|
|
|
- ©«¤l
- 176
- ¥DÃD
- 98
- ºëµØ
- 0
- ¿n¤À
- 279
- ÂI¦W
- 0
- §@·~¨t²Î
- window 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-2-17
- ³Ì«áµn¿ý
- 2020-4-8
|
|
|
|
|
|
|
- ©«¤l
- 175
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 207
- ÂI¦W
- 277
- §@·~¨t²Î
- WIN 10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-6-30
- ³Ì«áµn¿ý
- 2024-11-24
|
§âcode¶K¦b¤U±:
Sub Exx()
'¦X¨Ö¦P¤@¸ê®Æ§¨¤º©Ò¦³ExcelÀɤ§Sheet¤u§@ªí
Dim NewName As String
Dim MyBook As Workbook
Dim MyFile$, i%, k%
MyFile = Dir(ThisWorkbook.Path & "\*.xls")
Set MyBook = ThisWorkbook
i = 1
Application.ScreenUpdating = False
Do While MyFile <> ""
If MyFile <> MyBook.Name Then
With Workbooks.Open(ThisWorkbook.Path & "\" & MyFile)
For k = 1 To Sheets.Count
Sheets(k).Select
ActiveSheet.Range("a1").Select
NewName = Left(MyFile, Len(MyFile) - 4)
ActiveSheet.Copy After:=MyBook.Sheets(MyBook.Sheets.Count)
ActiveSheet.Name = NewName & "_" & k
Next k
k = 1
Application.DisplayAlerts = False
.Close
On Error Resume Next
End With
End If
MyFile = Dir
Loop
Application.ScreenUpdating = True
End Sub |
|
|
|
|
|
|
- ©«¤l
- 176
- ¥DÃD
- 98
- ºëµØ
- 0
- ¿n¤À
- 279
- ÂI¦W
- 0
- §@·~¨t²Î
- window 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-2-17
- ³Ì«áµn¿ý
- 2020-4-8
|
|
|
|
|
|
|
- ©«¤l
- 175
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 207
- ÂI¦W
- 277
- §@·~¨t²Î
- WIN 10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-6-30
- ³Ì«áµn¿ý
- 2024-11-24
|
¥ý«Ø¤@Ó¿W¥ßªº¥Ø¿ý§¨
¦b¥Ø¿ý§¨¤U¥ô«Ø¤@ÓÀÉ(ÀɦW¤£©ë,°²³]¬°abc.xls) «ö alt+F11
±N¤W±ªºµ{¦¡½X½Æ»s¦b¼Ò²Õ¤º ¦sÀÉ
±N±ý¦¬¶°ªº¦hÓÀÉ©ñ¦b¦¹¥Ø¿ý§¨¤U
¦A¥´¶}abc.xls ¶]Exx³oÓ¥¨¶°§Y¥i |
|
|
|
|
|
|
- ©«¤l
- 175
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 207
- ÂI¦W
- 277
- §@·~¨t²Î
- WIN 10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-6-30
- ³Ì«áµn¿ý
- 2024-11-24
|
¦^´_ 1# enoch
µo²{¤§«eªºµ{¦¡¥u·|½Æ»s²Ä¤@Ó¤u§@ªí¡A¤@ª½©ñµÛ¨S¨Ó³o¸Ì×¥¿¡A½Ð®ü²[¡C¤§«á¦³ª¦¤å¨ú±oªº¶i¤@¨Bªº×¥¿¦p¤U¡G
¡@¡@§@ªÌ¡Gª¾¥G¥Î¤á¡@³sµ²¡Ghttps://www.zhihu.com/question/20366713/answer/50817274¡@¨Ó·½¡Gª¾¥G
¡@¡@§ïª©«áªºµ{¦¡¦pªþ¥ó¡A°õ¦æ«áªºµ²ªG´N¬O§Ú·Qnªº¡C
¡@¡@
Revised.zip (47.41 KB)
|
|
|
|
|
|
|