- ©«¤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
|
¦^´_ 26# cchaha_captain
¸Õ¸Õ¤U¦Cµ{¦¡
¦b¶}±Òªº©Ò¦³¬¡¶Ã¯¤¤,±N°£¤F§@¥Î¤¤¬¡¶Ã¯ (ActiveWorkbook) , ¤§¥~ªºSheets(1).UsedRange ,¦¬¶°¨ì§@¥Î¤¤¬¡¶Ã¯¤¤ªºActiveSheet- Sub Ex()
- Dim Book As Workbook, Rng(1 To 2) As Range
- With ActiveWorkbook.ActiveSheet
- Set Rng(1) = .Range("A" & Rows.Count).End(xlUp)
- For Each Book In Workbooks
- If Book.Name <> .Parent.Name Then
- Set Rng(2) = Book.Sheets(1).UsedRange
- Rng(1).Resize(Rng(2).Rows.Count, Rng(2).Columns.Count) = Rng(2).Value
- Set Rng(1) = .Range("A" & Rows.Count).End(xlUp).Offset(1)
- End If
- Next
- End With
- End Sub
½Æ»s¥N½X |
|