[¨D§U] ½Ð°ª¤â¨D§U¡A¦p¦ó¥Îvba¬d§ä¸ê®Æ®w¤¤ªº¸ê®Æ°O¿ý¡H
- ©«¤l
- 96
- ¥DÃD
- 29
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-3-8
- ³Ì«áµn¿ý
- 2024-8-14
|
¤j¤j¡A¯à§_À°§Ú¬Ý¬Ý¡AÁÂÁ¡I |
|
|
|
|
|
|
- ©«¤l
- 96
- ¥DÃD
- 29
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-3-8
- ³Ì«áµn¿ý
- 2024-8-14
|
¦^´_ maiko
¦bSheet2¤¤ªºB¡BCÄæÀH«K¥´Ó¸ê®Æ¬Ý¬Ý
Hsieh µoªí©ó 2012-9-25 15:09
ªGµM¥i¥H°Õ¡I
¤£¹L¯à§_§â²M³æªº¶¶§Ç±Æ¬°¤É§Ç¶Ü¡HÁÂÁ¡I |
|
|
|
|
|
|
- ©«¤l
- 96
- ¥DÃD
- 29
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-3-8
- ³Ì«áµn¿ý
- 2024-8-14
|
¦^´_ maiko
¦bSheet2¤¤ªºB¡BCÄæÀH«K¥´Ó¸ê®Æ¬Ý¬Ý
Hsieh µoªí©ó 2012-9-25 15:09
¸É¥R¤@¤U¡G
¯à§_³q¹LSheet1ªí¤¤ªºA2¡BB2¡BC2Àx¦s®æªº§ïÅܦӥO¨ìD2¡BE2Àx¦s®æªº²M³æ§ïÅÜ¡HÁÂÁ¡I |
|
|
|
|
|
|
- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 255
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 14# maiko
Book3_New.rar (26.71 KB)
sheet1¼Ò²Õ- Private Sub Worksheet_Change(ByVal Target As Range)
- Application.EnableEvents = False
- If Not Intersect(Target, [A2:C2]) Is Nothing Then CreateList
- Application.EnableEvents = True
- End Sub
½Æ»s¥N½X ¤@¯ë¼Ò²Õ- Sub Search_Data_New()
- Application.ScreenUpdating = False
- Application.EnableEvents = False
- With Sheet1
- y = .[A2]: m = .[B2]: d = .[C2]
- .[A2] = IIf(.[A2] = "", "", "=YEAR(Sheet2!A2)=" & y)
- .[B2] = IIf(.[B2] = "", "", "=MONTH(Sheet2!A2)=" & m)
- .[C2] = IIf(.[C2] = "", "", "=DAY(Sheet2!A2)=" & d)
- With Sheet2
- .Range("A1").CurrentRegion.AdvancedFilter xlFilterCopy, Sheet1.[A1:E2], Sheet1.[A6:D6], False
- End With
- If .[A7] = "" Then
- MsgBox "µL¸ê®Æ"
- Else
- .Cells(.Rows.Count, 3).End(xlUp).Offset(2).Resize(, 2) = Array("Á`¦@:", "=SUM(R7C:R[-1]C)")
- End If
-
- .[A2] = y
- .[B2] = m
- .[C2] = d
- End With
- Application.ScreenUpdating = True
- Application.EnableEvents = True
- End Sub
- Sub CreateList()
- Dim A As Range
- Set dic = CreateObject("Scripting.Dictionary")
- Set dic1 = CreateObject("Scripting.Dictionary")
- With Sheet1
- y = .[A2]: m = .[B2]: d = .[C2]
- .[A2] = IIf(.[A2] = "", "", "=YEAR(Sheet2!A2)=" & y)
- .[B2] = IIf(.[B2] = "", "", "=MONTH(Sheet2!A2)=" & m)
- .[C2] = IIf(.[C2] = "", "", "=DAY(Sheet2!A2)=" & d)
- With Sheet2
- .[F1:G1] = .[B1:C1].Value
- .Range("A1").CurrentRegion.AdvancedFilter xlFilterCopy, Sheet1.[A1:C2], .[F1:G1], True
- r = .Range("F1").CurrentRegion.Rows.Count
- With .Range(.[F1], .[F1].End(xlDown))
- .Sort key1:=.Cells(1, 1), Header:=xlYes
- If r > 1 Then
- For Each A In .Cells(1).Offset(1).Resize(.Count - 1, 1)
- dic(A.Value) = ""
- Next
- End If
- .Clear
- End With
- With .Range(.[G1], .[G1].End(xlDown))
- .Sort key1:=.Cells(1, 1), Header:=xlYes
- If r > 1 Then
- For Each A In .Cells(1).Offset(1).Resize(.Count - 1, 1)
- dic1(A.Value) = ""
- Next
- End If
- .Clear
- End With
- End With
- With .Range("D2").Validation
- .Delete
- If r > 1 Then .Add xlValidateList, , , Join(dic.keys, ",")
- End With
- With .Range("E2").Validation
- .Delete
- If r > 1 Then .Add xlValidateList, , , Join(dic1.keys, ",")
- End With
-
- .[A2] = y
- .[B2] = m
- .[C2] = d
- End With
- End Sub
½Æ»s¥N½X |
|
¾Ç®üµL²P_¤£®¢¤U°Ý
|
|
|
|
|
- ©«¤l
- 96
- ¥DÃD
- 29
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-3-8
- ³Ì«áµn¿ý
- 2024-8-14
|
¦^´_ maiko
sheet1¼Ò²Õ¤@¯ë¼Ò²Õ
Hsieh µoªí©ó 2012-9-26 20:41
¤j¤j¡A¯u¬O·PÁ§AªºÀ°¦£¡A¸Õ¹L¥N½X¡AÁÙ¯u¦æ¡I
¤£¹LÁÙ¦³¤@ÂIÂI¿ù»~¡A¤j¤j¯à§_À°¦£§ï¤@¤U¡A´N¬O¡A¦pªG¦b¿ï©w¤FA2¡BB2¡BC2¤§«á¡A¦pªGD2¤]¿ï©wªº¸Ü¡A¨º»òE2¯à§_ÀHµÛD2ªº¿ï¾Ü¦Ó¥X²{¹ïÀ³ªº²M³æ¤º®e¡H
·PÁ¡I |
|
|
|
|
|
|
- ©«¤l
- 96
- ¥DÃD
- 29
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-3-8
- ³Ì«áµn¿ý
- 2024-8-14
|
¦^´_ maiko
sheet1¼Ò²Õ¤@¯ë¼Ò²Õ
Hsieh µoªí©ó 2012-9-26 20:41
§Úı±o¦n¹³n¨D¶V¨Ó¶V¦h¦üªº¡A§Ú¦³ÂIı±o¤£¦n·N«ä¡A¤£¹LÁٳѤU¤@ÂIÂIªF¦èn¤j¤j¦AÀ°À°¦£¡A´N³o»ò¤@ÂIÂIªF¦è¤F¡A¦pªG§Ë¦n¨º´N§¹¬ü¤F¡A¤£ª¾¹D¤j¤j¯à§_¦A°Ê¤âÀ°¦£×§ï¤@¤U¡A¯u¬O·P¿E¤£ºÉ¡I
´N¬O¯à§_§âA2¡BB2¡BC2¤]§ï¦¨¼Æ¾Ú®w¸Ì¦s¦bªº¤é´Á²M³æ¡H
¿ï©w¤FA2¡A¨º»òB2¡BC2¡BD2¡BE2¤]´N¸òµÛ§ïÅܲM³æ¤º®e¡F
¿ï©w¤FA2¡BB2¡A¨º»òC2¡BD2¡BE2¤]´N¸òµÛ§ïÅܲM³æ¤º®e¡F
¦p¦¹Ãþ±À¡A¦pªG¿ï©w¤F¬Y¨âөΪ̤TÓªº¸Ü¡A¨º»ò¨ä¾lªº¤]¸òÀH§ïÅܲM³æ¤º®e¡F
´N¬O³o»òªº¤@Ó¥æ¤e¬d¸ß¡B¤¬¬°§ïÅܪº¤@ÓÁp¯Å²M³æ¡A·d©w¤F¡A¨º»ò³oӼƾڮw´N§¹¦¨¤F¡C
·P¿E¤j¤jªº²±±¡À°¦£¡I¦b¦¹«ôÁ¡I¤d¸U§O¶û¦b¤U³Â·Ð¡C·PÁ¡I |
|
|
|
|
|
|
- ©«¤l
- 96
- ¥DÃD
- 29
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-3-8
- ³Ì«áµn¿ý
- 2024-8-14
|
½Ð¤j¤jÀ°À°¦£¡A«ô°U¤@¤U¡A«ôÁ¤F! |
|
|
|
|
|
|
- ©«¤l
- 96
- ¥DÃD
- 29
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-3-8
- ³Ì«áµn¿ý
- 2024-8-14
|
¦^´_ maiko
sheet1¼Ò²Õ¤@¯ë¼Ò²Õ
Hsieh µoªí©ó 2012-9-26 20:41
Hsieh¤j¡A½Ð§A¤@©wnÀ°¦£×§ï¤@¤U¡A³Â·Ð§A¤F¡C
½Ð§âA2¡BB2¡BC2¤]§ï¦¨¼Æ¾Ú®w¸Ì¦s¦bªº¤é´Á²M³æ¡H
¿ï©w¤FA2¡A¨º»òB2¡BC2¡BD2¡BE2¤]´N¸òµÛ§ïÅܲM³æ¤º®e¡F
¿ï©w¤FA2¡BB2¡A¨º»òC2¡BD2¡BE2¤]´N¸òµÛ§ïÅܲM³æ¤º®e¡F
¾l¦¹Ãþ±À¡A¦pªG¿ï©w¤F¬Y¨âөΪ̤TÓªº¸Ü¡A¨º»ò¨ä¾lªº¤]¸òÀH§ïÅܲM³æ¤º®e¡F
´N¬O³o»òªº¤@Ó¥æ¤e¬d¸ß¡B¤¬¬°§ïÅܪº¤@ÓÁp¯Å²M³æ¡C |
|
|
|
|
|
|