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

[µo°Ý] ÃC¦â§P§O

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2022-12-30 08:10 ½s¿è

¦^´_ 18# ­ã´£³¡ªL


    ÁÂÁ«e½ú
¤µ¤ÑÂǦ¹©«½m²ß°}¦C»P¦r¨å,±N®æ¦¡¤Æ±ø¥ó§ï¬°VBA,½Ð«e½ú¦A«ü¾É,ÁÂÁ«e½ú

°õ¦æ«e:


°õ¦æµ²ªG:


¤u§@ªí¼Ò²Õ:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
With Target
     If .Row < 3 Or .Value = "" Then Exit Sub
     If .Column Mod 4 <> 1 Then Exit Sub
     Cancel = True
     Call Åܦr¦â_¦h­Ó¦PªÑ¦W
     
     If Y(.Value & "|") > 1 Then Y(.Value).Interior.ColorIndex = 4
     Set Y = Nothing
     Set Brr = Nothing
End With
End Sub

Module1:
Option Explicit
Public Brr, Y
Sub Åܦr¦â_¦h­Ó¦PªÑ¦W()
Dim C&, R&
Set Y = CreateObject("Scripting.Dictionary")
ActiveSheet.UsedRange.Offset(2).Font.ColorIndex = 1
ActiveSheet.UsedRange.Offset(2).Interior.ColorIndex = xlNone
Brr = ActiveSheet.UsedRange
Set Y(1) = [B1]
For C = 1 To UBound(Brr, 2) Step 4
   For R = 3 To UBound(Brr)
      Y(Brr(R, C) & "|") = Y(Brr(R, C) & "|") + 1
      If Y(Brr(R, C) & "|") = 1 Then
         Set Y(Brr(R, C)) = Cells(R, C)
         GoTo PASS
      End If
      If Y(Brr(R, C) & "|") = 2 Then
         Set Y(1) = Union(Y(1), Y(Brr(R, C)))
      End If
      Set Y(1) = Union(Y(1), Cells(R, C))
      Set Y(Brr(R, C)) = Union(Y(Brr(R, C)), Cells(R, C))
      
PASS:
   Next
Next
Y(1).Font.ColorIndex = 5
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 20# samwang

ÁÂÁ¤j¤j

TOP

¦^´_ 19# coafort

½Ð´ú¬Ý¬Ý¡AÁÂÁÂ

test_1101.zip (20.69 KB)

TOP

¦^´_  coafort

®æ¦¡±ø¥ó+vba
1) ­«ÂÐ--ÂŦâ¦r
2) ¹ï¦³­«ÂЪºªÑ²¼¦WºÙÂùÀ»¥ªÁä, ©Ò¦³¬Û¦Pªº¼Ð²L¬õ©³
...
­ã´£³¡ªL µoªí©ó 2021-10-31 15:45


¤j¤j³o­Ó¦n¤è«K
«D±`·P®¦¤j¤j´£¨Ñªº¤èªk
·P®¦·P®¦µL­­:)

TOP

¦^´_ 10# coafort

®æ¦¡±ø¥ó+vba
1) ­«ÂÐ--ÂŦâ¦r
2) ¹ï¦³­«ÂЪºªÑ²¼¦WºÙÂùÀ»¥ªÁä, ©Ò¦³¬Û¦Pªº¼Ð²L¬õ©³
Xl0000797.rar (15.27 KB)

¥Î¤Fcountif, ½d³ò¤Ó¤j, ·|«Ü¥d~~¥i±¤¬O¸õÄæ, ¥Îmatch¤½¦¡«Üªø

TOP

¦^´_  coafort

~~~~~~~~~~~~~
hcm19522 µoªí©ó 2021-10-30 14:52


«D±`ÁÂÁ¤j¤jªºÀ°¦£
¦³±z¯u¦n
§Ú©ú¤Ñ¬ã¨s¬Ý¬Ý:kiss:

TOP

¦^´_ 15# coafort

~~~~~~~~~~~~~

®æ¦¡¤Æ ­«½Æ­È ¼Æ¾Ú¸õ¦æ (9045).rar (7.83 KB)

google"EXCEL°g"  blog  ©Îgoogleºô§}:https://hcm19522.blogspot.com/

TOP

¦^´_  coafort


  ®æ¦¡¤Æ¤½¦¡


©Î$AM §ï $A$3M$33
hcm19522 µoªí©ó 2021-10-30 13:24


ÁÂÁ¤j¤j
¦ý¬O§Ú§Ë¤£¥X¨Ó
¬O§_¥i³Ò·Ð¤j¤j¥Î¤p§Ìªþ¥óÀ°¤p§Ì§Ë©O¡H
ÁÂÁ¤j¤j
«D±`·P®¦

TOP

¦^´_ 13# coafort


  ®æ¦¡¤Æ¤½¦¡
https://blog.xuite.net/hcm19522/twblog/590098778

©Î$A:$M §ï $A$3:$M$33
google"EXCEL°g"  blog  ©Îgoogleºô§}:https://hcm19522.blogspot.com/

TOP

=(COUNTIF($A$3M$33,A3)>1)*(MOD(COLUMN(A1),4)=1)
hcm19522 µoªí©ó 2021-10-30 12:36


½Ð°Ý¤j¤j
³o¬O¡H
ÁÂÁÂ

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤H¤£©È¿ù¡A´N©È¤£§ï¹L¡A§ï¹L¨Ã¤£Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD