- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 254
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-23
|
¦^´_ 1# gn00487767
¤@Áä·d©w- Private Sub CommandButton2_Click()
- Dim Ar()
- With Sheets("¦W³æ")
- For Each a In .Range(.[E2], .[E2].End(xlDown)).SpecialCells(xlCellTypeConstants)
- ReDim Preserve Ar(s)
- n = Application.HLookup(a, Array(Array("²Ä¤@Ãþ", "²Ä¤GÃþ", "²Ä¤TÃþ", "²Ä¥|Ãþ", "²Ä¤Ãþ"), Array(5, 3, 1, 0, 8)), 2, 0)
- y = DateAdd("m", n, a.Offset(, 1))
- Ar(s) = Array(y, n, IIf(Date > y, "¦³®Ä", "µL®Ä"))
- s = s + 1
- Next
- End With
- ay = Application.Transpose(Application.Transpose(Ar))
- With Sheets("ÅçÃÒ")
- .Range(.[B2], .[B2].End(xlDown)).ClearContents
- .[B2].Resize(s, 1) = Application.Index(ay, , 1)
- .Range(.[E2], .[E2].End(xlDown)).ClearContents
- .[E2].Resize(s, 1) = Application.Index(ay, , 2)
- End With
- With Sheets("µ²ªG")
- .Range(.[B2], .[B2].End(xlDown)).ClearContents
- .[B2].Resize(s, 1) = Application.Index(ay, , 3)
- End With
- End Sub
½Æ»s¥N½X |
|