- ©«¤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
|
¦^´_ 11# 317
¹ï¸Ü²°¤¤¥uÅã¥Ü¨ì´Á³fª«, ¦p¿é¤J¨S¦³¨ì¬õ°s¤ë¥÷®É, ¥ç·|§@¥X´£¥Ü¸Ó¤ë¥÷¨S¦³¨ì´Á¬õ°s,
¥i¥H¦A¸ÑÄÀ¤@¤U¶Ü?
¸ÕµÛקï¦p¤U- Option Explicit
- Sub Ex()
- Dim ym As String, Rng As Range, A As Range, mystr As String, R As Integer
- ym = InputBox("¿é¤J¤J³f¦~¤ë", , 201308)
- Set Rng = Range("B:B").SpecialCells(xlCellTypeConstants)
- For Each A In Rng
- If IsDate(A) Then
- If Format(Cells(A.Row, "B"), "yyyymm") >= ym Then '****
- If mystr = "" Then mystr = "¤J³f¤é´Á" & vbTab & "½s¸¹" & vbTab & "¦WºÙ" & vbTab & "¯Å§O" & vbTab & "¨ì´Á¤é"
- If Cells(A.Row, "m") <> "" Then
- R = A.Row
- Else
- R = Cells(A.Row, "m").End(xlUp).Row
- If R = Rng.Cells(1).Row Then R = R + 1
- End If
- mystr = mystr & vbLf & Format(Cells(A.Row, "B"), "yyyy/mm/dd") & vbTab & Cells(A.Row, "c").Text & vbTab & Cells(A.Row, "d").Text & vbTab & Cells(A.Row, "e") & vbTab & Cells(R, "m")
- End If
- End If
- Next
- MsgBox IIf(mystr <> "", mystr, ym & " ¨S¦³¨ì´Áªº°s")
- End Sub
½Æ»s¥N½X |
|