- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 10# ¤p¸ô¦èªk - Option Explicit
- Sub Ex()
- Dim Rng(1 To 2) As Range, xPath As String
- xPath = "C:\Users\Eternity\Desktop\·s¼W¸ê®Æ§¨ (3)\"
- Set Rng(1) = Workbooks("¥X³fªí1070807-0808¦ (version 1).xlsb").Sheets("¤u§@ªí1").Range("A2:H9")
- '**Rng(1)-> ©Ò«ü©wªº²Ä¤@Ó½d³ò
- Set Rng(2) = Rng(1).Range("F1") '**«ü©w½d³òªº"F1"
- Do While Rng(2) <> "" '**«ü©w½d³òªº"F1"¦³¦sÀɪº¦WºÙ,¬O°j°é°õ¦æ¤U¥hªº±ø¥ó.
- With Workbooks.Add(1) '**½Ð¬d¬Ý Excel ¶}µo¤Hû°Ñ¦Ò¸ê®Æ-> Workbooks.Add ¤èªk °Ñ¼Æ 1 ¬° xlWBATWorksheet
- Rng(1).Copy .Sheets(1).Range("a1")
- .SaveAs xPath & Rng(2)
- .Close
- End With
- Set Rng(1) = Rng(1).Offset(9) '** ¤U¤@Ó©Ò«ü©wªº½d³ò»P¤W¤@Ó½d³ò©T©w®t9Ó¦C
- Set Rng(2) = Rng(1).Range("F1")
- Loop
- End Sub
½Æ»s¥N½X |
|