Àx¦s¦U¨ú±oµJÂI«á¬Y¤@Äæ¦ìÅܦâ
- ©«¤l
- 162
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2018-1-5
- ³Ì«áµn¿ý
- 2025-2-18
|
¦^´_ coafort
·s¼Wµ{¦¡½X¨ì즳µ{¦¡½X¸Ì»Ýn¾ã²z¤@¤U,½Ð§â¾ãÓ¤u§@ªí¼Ò²Õ¸Ìªºµ{¦¡½X¶K¤W¨Ó
Andy2483 µoªí©ó 2024-2-2 14:17 
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
With Target
'¡ô¥H¤U¬OÃö©óÀx¦s®æ½s¿èIJµoªºµ{§Ç
If .Count > 1 Or .Item(1) = "" Then Exit Sub
'¡ô¦pªGIJµo®æ¼Æ¶q¤j©ó 1 ©ÎIJµo®æªº¤U¤è®æ¬OªÅ¥Õ!´Nµ²§ôµ{¦¡°õ¦æ
If Not Intersect([AR212:AR219,AX212:AX219,AD222,AF222], .Cells) Is Nothing Then
'¡ô¦pªGIJµo®æ¬O¦b[A2:A2]Àx¦s®æ¸Ì??
.Cells(1, 2) = Val(.Cells(1, 2)) + Val(.Value)
'¡ô¥OIJµo®æªº¥kÃ䨺1®æªºÈ + (IJµo®æÈ¥HVal ¨ç¼ÆÂà¤Æ¦^¶Çªº¼ÆÈ)
'IJµo®æ¥»¨¬O.Cells(1,1), ¥k°¼1®æ¬O.Cells(1,2), ¥ª°¼1®æ¬O.Cells(1,0),
'¤W¤è1®æ¬O.Cells(0,1), ¤U¤è1®æ¬O.Cells(2,1)
.ClearContents
'¡ô²M°£Ä²µo®æªº¤º®e
'¦¹²M°£ªºµ{§Ç¦A¦¸ªºÄ²µo¤F,¦ý¬O .Item(1) = "" ©Ò¥Hµ²§ôµ{¦¡°õ¦æ
End If
End With
End Sub
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim a As Range, b As Range, c As Range
With Target
Set b = [AG212:AG219,AF212:AF219]
Set c = [AR212:AR219,AX212:AZ219]
For Each a In b
If a.Interior.ColorIndex = 6 Then a.Interior.ColorIndex = xlNone
Next
Set c = Intersect(.Cells, c)
If Not c Is Nothing Then Intersect(c.EntireRow, b).Interior.ColorIndex = 6
End With
End Sub
ÁÂÁ¤j¤j
:D |
|
|
|
|
|
|
- ©«¤l
- 162
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2018-1-5
- ³Ì«áµn¿ý
- 2025-2-18
|
¦^´_ coafort
Option Explicit '¡ö³o¬O°»´ú©Ò¨Ï¥ÎªºÅܼƦ³¨S¦³°µ«Å§i,n©ñ³Ì¤W±
Dim Brr '¡ö³o¬O¦P¼Ò ...
Andy2483 µoªí©ó 2024-2-2 15:52 
³ø§i¤j¤j¡AÂ÷¶}«á¶À¦â©³¤£·|®ø¥¢
ÁÂÁ¤j¤j |
|
|
|
|
|
|
- ©«¤l
- 162
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2018-1-5
- ³Ì«áµn¿ý
- 2025-2-18
|
¦^´_ coafort
Â÷¶}[AR212:AR219,AX212:AZ219] ³o¨Ç½d³ò¤~·|«ì´_쩳¦â
Andy2483 µoªí©ó 2024-2-2 16:05 
©³¦â¶]¥hAJ¨ºÃä¥h¤F
ÁÂÁ¤j¤j |
|
|
|
|
|
|
- ©«¤l
- 162
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2018-1-5
- ³Ì«áµn¿ý
- 2025-2-18
|
¦^´_ 27# Andy2483
§Ú»¡¿ù¤F
À³¸Ó¬O»¡
¶À©³·|²Öp¤£·|®ø¥¢
°£«DÂ÷¶}´å¼ÐÀx¦s®æ
ÁÂÁ¤j¤j |
|
|
|
|
|
|
- ©«¤l
- 162
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2018-1-5
- ³Ì«áµn¿ý
- 2025-2-18
|
§Q¥Î®æ¦¡±ø¥óÅܦâ//«O¯d즳®æ¦¡
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim ...
ã´£³¡ªL µoªí©ó 2024-2-3 10:35 
«D±`ÁÂÁÂã´£¤j¤j
«D±`ÁÂÁ¦w}¤j¤j
¤U¦¸§ï¶i:'( |
|
|
|
|
|
|
- ©«¤l
- 162
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2018-1-5
- ³Ì«áµn¿ý
- 2025-2-18
|
§Q¥Î®æ¦¡±ø¥óÅܦâ//«O¯d즳®æ¦¡
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim ...
ã´£³¡ªL µoªí©ó 2024-2-3 10:35 
¨ä¹ê¬O¤pªº§âÄæ¦ì·d¿ù¤F
¯uªº¬O«D±`©êºp
¹ê»Ú¤WÀ³¸Ó¬O
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim xA As Range, xB As Range, X As Range, R&
Set xA = [AR212:AR219,AX212:AX219]
Set xB = [AG212:AG219]
With Target
If xB.FormatConditions.Count Then xB.FormatConditions.Delete
If .Count > 1 Then Exit Sub
Set X = Intersect(.Cells, xA)
If X Is Nothing Then Exit Sub
R = X.Row - xA.Item(1).Row + 1
With xB.Item(R).FormatConditions
.Add Type:=xlCellValue, Operator:=xlNotEqual, Formula1:="=""^_^"""
.Item(1).Interior.ColorIndex = 6
End With
End With
End Sub
½Ð°Ý¤j¤j
¦pªGAF212:AF219¤]n¤@°_Åܦâ
¸Ó¦p¦ó¥[¤J©O¡H
§Ú§ï¦¨¥H¤U³o¼Ë¥u¦³AF¦³§@¥Î¦ý¬OAG¨S§@¥Î
ÁÂÁ¤j¤j
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim xA As Range, xB As Range, X As Range, R&
Set xA = [AR212:AR219,AX212:AX219]
Set xB = [AF212:AF219,AG212:AG219]
With Target
If xB.FormatConditions.Count Then xB.FormatConditions.Delete
If .Count > 1 Then Exit Sub
Set X = Intersect(.Cells, xA)
If X Is Nothing Then Exit Sub
R = X.Row - xA.Item(1).Row + 1
With xB.Item(R).FormatConditions
.Add Type:=xlCellValue, Operator:=xlNotEqual, Formula1:="=""^_^"""
.Item(1).Interior.ColorIndex = 6
End With
End With
End Sub |
|
|
|
|
|
|
- ©«¤l
- 162
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2018-1-5
- ³Ì«áµn¿ý
- 2025-2-18
|
¦^´_ coafort
Set xB = [AF212:AG219]
With xB.Rows(R).FormatConditions
ã´£³¡ªL µoªí©ó 2024-2-4 15:01 
«D±`ÁÂÁÂã¤j¤j
¥i¥H¤F:D |
|
|
|
|
|
|