- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
©êºp!!Á{¬ÉȨS§ì·Ç, ¤wקï, ½Ð¦A´ú¸Õ¬Ý¬Ý!!- '´¡¤J§Ç¸¹, ¥H«K«ì´_쪬
- Sub ´¡¤J§Ç¸¹(LstR As Integer)
- Dim I As Integer
- For I = 2 To LstR
- Cells(I, 1) = I
- Next
- End Sub
- Sub test()
- Dim LstR As Integer, LstR2 As Integer, sR As Integer, I As Integer, cnt As Integer
- Dim minDate As Date
- [J2:K65536] = ""
- '²M°£©³¦â
- [J:K].Interior.ColorIndex = xlNone
- LstR2 = Cells(Rows.Count, 3).End(xlUp).Row
- ´¡¤J§Ç¸¹ LstR:=LstR2 '´¡¤J§Ç¸¹, ¥H«K«ì´_쪬
- [A1].Resize(LstR2, 10).Sort _
- Key1:=[C1], Order1:=xlAscending, _
- Key2:=[G1], Order1:=xlAscending, _
- Header:=xlYes
- LstR = Cells(Rows.Count, 3).End(xlUp).Row
- sR = 1
- Do
- sR = sR + 1
- If sR = 2 Then GoTo Next1:
- cnt = sR
- Do
- '³W«h1.¸¹½X¬Û¦P¥B»s³y¤é¬Û¦P, ¦ý¨ì´Á¤é¤£¦P
- If Cells(sR, 3) = Cells(sR - 1, 3) And Int(Cells(sR, 7)) = Int(Cells(sR - 1, 7)) And Cells(sR, 5) <> Cells(sR - 1, 5) Then
- Cells(sR - 1, 9) = "¨ì´Á¤é²§±`1"
- Cells(sR - 1, 9).Interior.ColorIndex = 8
- Cells(sR, 9) = "¨ì´Á¤é²§±`1"
- Cells(sR, 9).Interior.ColorIndex = 8
- End If
- sR = sR + 1
- Loop Until Cells(sR, 3) <> Cells(sR - 1, 3) Or sR > LstR 'ª½¨ì ¸¹½X¤£¦P ©Î ¸ê®Æµ²§À
- '³W«h2. ¨ì´Á¤é¤]¥²¶·±Æ§Ç
- If sR - cnt <= 1 Then GoTo Next1:
- For I = cnt To sR - 2
- minDate = Application.Min(Cells(I + 1, 5).Resize(sR - I - 1, 1))
- If Cells(I, 5) > minDate Then
- Cells(I, 10) = "¨ì´Á¤é²§±`2"
- Cells(I, 10).Interior.ColorIndex = 38
- End If
- Next
- Next1:
- Loop Until sR >= LstR 'ª½¨ì¸ê®Æµ²§À
- '«ì´_쪬, ¤è«K¬d®Ö
- [A1].Resize(LstR2, 10).Sort _
- Key1:=[A1], Order1:=xlAscending, _
- Header:=xlYes
- End Sub
½Æ»s¥N½X p.s.
±q »s³y¤é ºë·Ç¨ì"¤ÀÄÁ"¬Ý¨Ó, »s³y¤é¬O¥Ñ¹q¸£¦Û°Ê¿é¥Xªº,
¦ý ¨ì´Á¤é ¬°¦ó¤£¥Î 14# F ªº«Øij, §ï¥Î¤½¦¡¦Û°Ê¿é¤J,
¥H´î¤Ö¤H¬° Key In ¤Wªº¿ù»~?
¨ä¹ê, ¦³¹H¤Ï³W«h1¤Î³W«h2 ªº¿ù»~, «ç¥i¯à¨S¦³ ¨ì´Á¤é<»s³y¤é ªº¤H¬° Key In ¤Wªº¿ù»~!?
|
|