- ©«¤l
- 110
- ¥DÃD
- 14
- ºëµØ
- 0
- ¿n¤À
- 239
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2010-8-2
- ³Ì«áµn¿ý
- 2017-5-10
|
¦^´_ 28# Hsieh
Hsiehª©¤j¡A¤£¦n·N«ä¡A®¤¤pªº·M²Â¡A§Ú¸Õ¤F¤@¾ã¤Ñ¤~¸Õ¥XÃö©ó¬¡°Êª¬ºAªº³¡¥÷¦Ó¥H¡A©Ò¥H¥u¦n¦A¨D±Ï¤@¤U¡A
¦¹¤èªk§âµ{¦¡¼g¦b¡i¬d¸ß¡jªº¡u©±§O¡vÄæ¦ì¸Ì¡A©Ò¥H¥u¦³¦bÅܰʨì¡u©±§O¡vªºÄæ¦ì®É¤~¯à§ó·s¨ì¡i¬d¸ß¡jªº¤º®e¡A
©Ò¥H¦pªG·QÅý¨Ï¥ÎªÌ¦b¡i¸ê®ÆÀÉ¡j¤@Åܧó¼Æ¶qÄæ¦ì®É´N¥i¥H§ó·s¦Ü¡i¬d¸ß¡j¤u§@ªíªº¸Ü¡AÀ³¸Ón¦p¦ó³]©w¤~¦n©O?
¥Ø«eªº¤u§@ªí¤£¬O¤£¯à¨Ï¥Î¡A¦ý¬O¨Ï¥Î¤W¦³¤GÓ°ÝÃD
¤@¬O¥²»Ý±N¡i¸ê®ÆÀÉ¡j¸Ìªº¼Æ¶qÄæ¦ì¥ý²M°£±¼¡A«·s¥ukey¤J·Q·s¼Wªº¼Æ¶q¡A¦A¦Ü¡i¬d¸ß¡j¤u§@ªí¿ï¾Ü©±§O¡A´N¥i¥H¶¶§Q·s¼W¡A
¦ý¦pªG¨S¦³¥þ³¡²M°£ªº¸Ü¡A¸ê®Æ·|²V¦b¤@°_¤À¤£²M¡uÀx¦ì¡v¬OþÓ©±§Oªº¡uÀx¦ì¡v¡A§Æ±æ±z¯à©ú¥Õ§Ú¦b±Ôz¤°»ò¡A´Ý©Àªº§Æ±æ¶g¥½¦^¨Ó«á¡A
¯à¦A¦³©Òºë¶i¡A¯¬±z¶g¥½´r§Ö^^- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim Ar(), A As Range
- If Target.Address <> "$B$1" Then Exit Sub
- If Application.CountA(Range([A5], Cells(Rows.Count, 1))) > 0 Then
- For Each A In Range([A5], Cells(Rows.Count, 1).End(xlUp))
- ReDim Preserve Ar(s)
- Ar(s) = Application.Transpose(Application.Transpose(A.Resize(, 8)))
- s = s + 1
- Next
- End If
-
- With Sheet1
- If Application.Count(.Range("B:B")) > 0 Then
- For Each A In .Range("B:B").SpecialCells(xlCellTypeConstants, 1)
- ReDim Preserve Ar(s)
- If A.Offset(, 8) = "V" And (A.Offset(, 9) > Date Or A.Offset(, 9) = "") And A > A.Offset(, 4) Then dot = Int(A / 1000) * 1000 Else dot = 0
- k = IIf(Target = "Á`©±", 10, 11)
- If A.Offset(, 7) >= Date Then
- If A < A.Offset(, 4) Then
- m = "¹B¶O+¤âÄò¶O"
- ElseIf A.Offset(, 5) = "±À" And A > A.Offset(, 4) Then
- m = "§K¹B"
- ElseIf A.Offset(, 5) <> "±À" And A > A.Offset(, 4) Then
- m = "¹B¶O"
- End If
- Else
- m = "¤wµ²§ô"
- End If
- Ar(s) = Array(A.Offset(, 2).Value, A.Value, A.Offset(, 3).Value, dot, A.Offset(, 12).Value, A.Offset(, k).Value, m, A.Offset(, 6).Value)
- s = s + 1
- Next
- End If
- End With
- If s > 0 Then [A5].Resize(s, 8) = Application.Transpose(Application.Transpose(Ar))
- Range("A4").CurrentRegion.Sort key1:=[A4], Header:=xlYes
- End Sub
½Æ»s¥N½X |
|