°Ï°ì¤ºÅã¥Ü¿é¤Jȶñº¡ÃC¦â¤§°ÝÃD
- ©«¤l
- 1387
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 1397
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-9-11
- ³Ì«áµn¿ý
- 2024-11-27
|
http://blog.xuite.net/hcm19522/twblog/356624511
G21:L21»P®æ¦¡¤Æ ¥H "ã¤j" ºë² |
|
|
|
|
|
|
- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-26
|
Sub °õ¦æ()
Dim xR As Range, MH, Brr
[B2:X18].Interior.ColorIndex = 0
[G21:L21].ClearContents
Brr = [G21:L21]
For Each xR In Range("B" & Replace([C20], "-", ":X"))
¡@¡@MH = Application.Match(xR, [G20:L20], 0)
¡@¡@If IsNumeric(MH) Then
¡@¡@¡@¡@xR.Interior.ColorIndex = [G19].Cells(1, MH).Interior.ColorIndex
¡@¡@¡@¡@Brr(1, MH) = Brr(1, MH) + 1
¡@¡@End If
Next
[G21:L21] = Brr
End Sub |
|
|
|
|
|
|
- ©«¤l
- 248
- ¥DÃD
- 76
- ºëµØ
- 0
- ¿n¤À
- 331
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- XP
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- kaohsiung
- µù¥U®É¶¡
- 2013-6-10
- ³Ì«áµn¿ý
- 2020-7-3
|
ã¤j¡G
®M¥Îµ{¦¡½X«á¡Aµo²{³¡¤ÀÃC¦â¹ï·Ó¦³»~¡C
¥t¨C¦¸¦³×§ï¡A»Ý¸õ¨ìµ{¦¡½X¶±«·s°õ¦æ1¦¸¡A
Yn¦b¤u§@©³½Z¤¤¥[¤J§Ö³t¶s¡A¬O§_¥i¦æ¡H |
|
§Æ±æ¤ä«ù!
|
|
|
|
|
- ©«¤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
|
¸Õ¸Õ¬Ý:- Sub ¶}©l²Îp()
- Dim Cel As Range, Rng As Range
- Dim FstAddr As String, ndx As Integer, cNum As Integer
- Set Rng = Range("B" & [B21] & ":X" & [C21] & "")
- cNum = 0
- For Each Cel In [G20:L20]
- cNum = Cel.Offset(-1, 0).Interior.ColorIndex
- Cel.Interior.ColorIndex = cNum
- ndx = 0
- On Error GoTo next1
- Rng.Find(What:=Cel, LookIn:=xlFormulas, LookAt:=xlWhole).Activate
- FstAddr = ActiveCell.Address
- Cel.Interior.ColorIndex = cNum
- ActiveCell.Interior.ColorIndex = cNum
- Do
- ndx = ndx + 1
- On Error GoTo next1
- Rng.FindNext(After:=ActiveCell).Activate
- ActiveCell.Interior.ColorIndex = cNum
- Loop Until FstAddr = ActiveCell.Address
- next1:
- Cel.Offset(1, 0) = ndx
- Next
- End Sub
- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim Rng As Range
- Set Rng = Application.Union([B21:C21], [G20:L20])
- If Intersect(Target, Rng) Is Nothing Then Exit Sub
- If Not Intersect(Target, [B21:C21]) Is Nothing Then
- [B2:X18].Interior.ColorIndex = xlNone
- [G20:L20].Interior.ColorIndex = xlNone
- [G21:L21] = ""
- If [B21] > [C21] Then
- MsgBox "ª`·N:" & Chr(10) & "±Ò©l¦CªºÈ ¤£¥i¥H¤j©ó ²×¤î¦CªºÈ", vbCritical
- Exit Sub
- End If
- End If
- If Not Intersect(Target, [G20:L20]) Is Nothing Then
- [B2:X18].Interior.ColorIndex = xlNone
- [G20:L20].Interior.ColorIndex = xlNone
- [G21:L21] = ""
- [N21] = "= COUNTA(G20:L20)"
- If [N21] <> 6 Then Exit Sub
- [N20] = "=SUMPRODUCT((G20:L20<>"""")/COUNTIF(G20:L20,G20:L20&""""))"
- If [N20] < 6 Then
- MsgBox "ª`·N:" & Chr(10) & "¿é¤J°Ï¸ê®Æ«ÂÐ!!", vbCritical
- Exit Sub
- End If
- End If
- ¶}©l²Îp
- End Sub
½Æ»s¥N½X
|
|
|
|
|
|
|
- ©«¤l
- 248
- ¥DÃD
- 76
- ºëµØ
- 0
- ¿n¤À
- 331
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- XP
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- kaohsiung
- µù¥U®É¶¡
- 2013-6-10
- ³Ì«áµn¿ý
- 2020-7-3
|
¶i¶¥°ÝÃD¡G
1.·í¿é¤J°Ï¦p¿é¤Je100µ{¦¡·|¥X²{¿ù»~¡A¥i§_¥X²{µøµ¡¤è¦¡ªí²{¡H
2.¥Ø«e¦C¿é¤J¦Ü18¦C¡Aµ{¦¡¥i§_±±¨î¡A·í¦A¿é¤J§¹¦C19®É¡A¦Û°Ê¦AªÅ¥X1¦C¡Aì20¦C¦Û°Ê¦V¤U½Õ¾ã1¦C¡A¥H¦¹Ãþ±À!
3.¬°¦ó¿é¤J°Ï»P¶¶§Ç¦CÃC¦â·|¤£¤@P¡C |
|
§Æ±æ¤ä«ù!
|
|
|
|
|
- ©«¤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
|
¦^´_ 15# s7659109
¥H#14F ¬°¨Ò¦^ÂÐ:
Q1. ¦b˼ƲÄ4¦C
(§Y¦b49»P50¦C¤§¶¡)
´¡¤J
On Error Resume Next
[B2:X18].Find(What:=Target, LookIn:=xlFormulas, LookAt:=xlWhole).Activate
MsgBox "ª`·N:" & Chr(10) & "¸ê®Æ¿é¤J¿ù»~!!", vbCritical
Exit Sub
§Y¥i.
Q2. ³o¬Oª©±³]p°ÝÃD,
¦ó¤£±N¿é¤J°Ïª½©ñ¨ì¨ì³Ì¤U±?
¤¤¶¡¦CªÅ¥Õ¦C¥i¼È¥ý穏ÂÃ?
Q3. ¬Ý¤£¥X¿é¤J°Ï»P¶¶§Ç¦CÃC¦â¦³¦ó¤£¤@P?
¤£¬O¦³°Êµe¹Ï¥i¹ï·Ó¶Ü? |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 15# s7659109
Sorry, Q1 ÁÙ¨S¦³§ä¨ìµª®×, ì·Qªk·|¶i¤J¦Û§Ú´`Àô, Sorry!! |
|
|
|
|
|
|
- ©«¤l
- 248
- ¥DÃD
- 76
- ºëµØ
- 0
- ¿n¤À
- 331
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- XP
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- kaohsiung
- µù¥U®É¶¡
- 2013-6-10
- ³Ì«áµn¿ý
- 2020-7-3
|
°ÝÃD3¡G¦³ªþÀÉ(¤u§@ªí1)¶¶2¡B3¡B4½T¹ê¤£¤@P(office2010)·|¦³®t¶Ü¡H
°ÝÃD2¡GÕ¦C19¡B20©ñ¨ì³Ì«e±¡A«á±³°Äò¼W¥[¡Aìµ{¦¡½X¬O§_¨ç¬A¦b¤º¡A¦Ó¥i¦æ¡H |
|
§Æ±æ¤ä«ù!
|
|
|
|
|
- ©«¤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
|
¦^´_ 18# s7659109
°ÝÃD2¡G¨S¿ù, ¥un¦bVBA¤¤¬ÛÃö¦ì§}§ï¤@§ï´N¦æ¤F, ¦Ó¥B§Aªº·Qªk(©ñ¨ì³Ì¤W±)§ó´Î!!
°ÝÃD3¡G¤£¬O2010ªº°ÝÃD, ¦Ó¬O, ¦]¬°¸ê®Æ¿é¤J¿ù»~(¤]´N¬O«e±ªºQ1°ÝÃD),
§Ú¤]¤£ª¾¹Dn¦p¦ó§ï,
¥Ø«e·Q¨ìªº¬O§ï¥Î CommandButton(³Q°Ê°õ¦æ),
¤£n¥Î Worksheet_Change(¦Û°Ê°õ¦æ)¤~¤£·|±¼¶i¦Û§Ú´`Àô¤¤,
¥t½Ð°ª©ú§a, Sorry!! |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 13# s7659109
¸Õ¸Õ¬Ý:
§Ú¸Õ¹L¦n¹³¨S°ÝÃD
ÁÙ¬OªºÀÉ, °ÝÃD40-¼Ð¥Ü-1.rar, ¦ýb21,c21 ¦³§ï
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Rng As Range, Cel As Range
Set Rng = Application.Union([B21:C21], [G20:L20])
If Intersect(Target, Rng) Is Nothing Then Exit Sub
If Not Intersect(Target, [B21:C21]) Is Nothing Then
[B2:X18].Interior.ColorIndex = xlNone
[G20:L20].Interior.ColorIndex = xlNone
[G21:L21] = ""
If [B21] > [C21] Then
MsgBox "ª`·N:" & Chr(10) & "±Ò©l¦CªºÈ ¤£¥i¥H¤j©ó ²×¤î¦CªºÈ", vbCritical
Exit Sub
End If
End If
Set Rng = Range("B" & [B21] & ":X" & [C21] & "")
If Not Intersect(Target, [G20:L20]) Is Nothing Then
[B2:X18].Interior.ColorIndex = xlNone
[G20:L20].Interior.ColorIndex = xlNone
[G21:L21] = ""
On Error Resume Next
Set Cel = Rng.Find(What:=Target, LookIn:=xlFormulas, LookAt:=xlWhole)
If Cel Is Nothing Then
MsgBox "ª`·N:" & Chr(10) & "¸ê®Æ¿é¤J¿ù»~!!", vbCritical
Exit Sub
End If
[N21] = "= COUNTA(G20:L20)"
If [N21] <> 6 Then Exit Sub
[N20] = "=SUMPRODUCT((G20:L20<>"""")/COUNTIF(G20:L20,G20:L20&""""))"
If [N20] < 6 Then
MsgBox "ª`·N:" & Chr(10) & "¿é¤J°Ï¸ê®Æ«ÂÐ!!", vbCritical
Exit Sub
End If
End If
¶}©l²Îp
End Sub |
|
|
|
|
|
|