ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

Àx¦s¦U¨ú±oµJÂI«á¬Y¤@Äæ¦ìÅܦâ

¦^´_  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

TOP

¦^´_  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

TOP

¦^´_  coafort

Â÷¶}[AR212:AR219,AX212:AZ219] ³o¨Ç½d³ò¤~·|«ì´_­ì©³¦â
Andy2483 µoªí©ó 2024-2-2 16:05


©³¦â¶]¥hAJ¨ºÃä¥h¤F
ÁÂÁ¤j¤j

TOP

¦^´_ 27# Andy2483

§Ú»¡¿ù¤F
À³¸Ó¬O»¡
¶À©³·|²Ö­p¤£·|®ø¥¢
°£«DÂ÷¶}´å¼ÐÀx¦s®æ
ÁÂÁ¤j¤j

TOP

§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:'(

TOP

§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

TOP

¦^´_  coafort

Set xB = [AF212:AG219]

With xB.Rows(R).FormatConditions
­ã´£³¡ªL µoªí©ó 2024-2-4 15:01


«D±`ÁÂÁ­ã¤j¤j
¥i¥H¤F:D

TOP

        ÀR«ä¦Û¦b : ¦a¤WºØ¤Fµæ¡A´N¤£©öªø¯ó¡F¤ß¤¤¦³µ½¡A´N¤£©ö¥Í´c¡C
ªð¦^¦Cªí ¤W¤@¥DÃD