- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 259
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-30
|
¦^´_ 1# naraohya
¤£ª¾¹D¦³¨S¦³²z¸Ñ¿ù»~
ª½±µÅýDÄæ°O¦í²Ä¤@¦¸BÄæ¿ïPD®Éªº¤é´Á(³o¥ÎCHANGE¨Æ¥ó¨Ó¿é¤JC¡ADÄ檺È)
Sheet3¼Ò²Õ- Private Sub Worksheet_Change(ByVal Target As Range)
- If Target.Count > 1 Then Exit Sub
- If Intersect(Target, [B3:B100]) Is Nothing Or Target = "" Then Exit Sub
- Application.EnableEvents = False
- If Target.Offset(, 1) = "" Then Target.Offset(, 1).Resize(, 2) = Array(IIf(Target = "PD", 1, ""), IIf(Target = "PD", Date, ""))
- Application.EnableEvents = True
- End Sub
½Æ»s¥N½X ¨C¦¸¶}ÀÉ®ÉpºâDÄæ¤é´Á¨ì·í¤éªº¤Ñ¼Æ¨Ã§ó§ïDÄ欰·í¤é¤é´Á- Private Sub Workbook_Open()
- Dim A As Range
- With Sheet3
- Application.EnableEvents = False
- For Each A In .[B3:B100]
- If A = "PD" And IsDate(A.Offset(, 2)) Then _
- A.Offset(, 1) = _
- DateDiff("d", A.Offset(, 2), Date) + A.Offset(, 1): A.Value = "CL": A.Offset(, 2) = Date
- Next
- Application.EnableEvents = True
- End With
- End Sub
½Æ»s¥N½X
pºâpending day.zip (11.84 KB)
|
|