- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-21
|
Sub TEST_A1()
Dim Arr, T$(2), D(2), i&, j%, N&
[¦¨ªG!A2:D2000].ClearContents
D(0) = [Form!E2]
If IsDate(D(0)) = False Then Exit Sub
Arr = Range([¥Ø¼Ð!F1], [¥Ø¼Ð!A65536].End(xlUp))
For i = 2 To UBound(Arr)
If Arr(i, 1) = "" Then GoTo i01 '[«~¸¹]ªÅ¥Õ, ²¤¹L
D(1) = Arr(i, 5) '[¥Í®Ä¤é´Á]
D(2) = Arr(i, 6) '[¥¢®Ä¤é´Á]
If IsDate(D(1)) Then If CDate(D(1)) > D(0) Then GoTo i01 '[¥Í®Ä¤é´Á]¦³¤é´Á, ¥B>«ü©w¤é, ²¤¹L
If IsDate(D(2)) Then If CDate(D(2)) <= D(0) Then GoTo i01 '[¥¢®Ä¤é´Á]¦³¤é´Á, ¥B<=«ü©w¤é, ²¤¹L
N = N + 1
For j = 1 To 4: Arr(N + 1, j) = Arr(i, j): Next j
i01: Next i
If N > 0 Then [¦¨ªG!A1].Resize(N + 1, 4) = Arr
End Sub
¨âÓ¤é´Á¬Û¦P, ¥²¥]§t¦b¨º¨âÓif±ø¥ó¤¤, ¤£¥²¥t¦æ§PÂ_:
¨Ò¦p:«ü©w¤é2020/9/8
2020/9/7 2020/9/7 ¥¢®Ä¤é´Á<=«ü©w¤é
2020/9/12 2020/9/12 ¥Í®Ä¤é´Á>«ü©w¤é
'================================ |
|