- ©«¤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
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-4-13 21:30 ½s¿è
¦^´_ 3# bhsm
ÁÙ¦³½æ¶W¤@¨Ö¦^µª ¨Ï¥Î¤u§@ªí «ü¥O ¸ê®Æ -> ¦X¨Ö·Jºâ «Ü§Öªº- Option Explicit
- Sub Ex()
- Dim Ar1(), Ar2(), xl As Integer, Rng As Range, xF As Range
- Sheets("¬Û¦P").Move Before:=Sheets(1)
- ReDim Ar1(2 To Sheets.Count)
- ReDim Ar2(2 To Sheets.Count)
- For xl = 2 To Sheets.Count
- With Sheets(xl)
- Set Rng = .Range("A5", .[A5].End(xlDown)(1, 2))
- Ar1(xl) = Rng.Address(, , xlR1C1, 1)
- Set Rng = .Range("E5", .[E5].End(xlDown)(1, 2))
- Ar2(xl) = Rng.Address(, , xlR1C1, 1)
- End With
- Next
- With Sheets(1)
- .Cells = ""
- .[A1] = "¶R¶W"
- .[A2].Consolidate Sources:=Ar1, Function:=xlCount, TopRow:=False, LeftColumn:=True, CreateLinks:=False
- .[A2].Consolidate Sources:=Ar1, Function:=xlCount, TopRow:=True, LeftColumn:=True, CreateLinks:=False
- .[E1] = "½æ¶W"
- .[E2].Consolidate Sources:=Ar2, Function:=xlCount, TopRow:=False, LeftColumn:=True, CreateLinks:=False
- .[E2].Consolidate Sources:=Ar2, Function:=xlCount, TopRow:=True, LeftColumn:=True, CreateLinks:=False
- End With
- End Sub
½Æ»s¥N½X |
|