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

¬Û¦PªÑ²¼¦Û°Ê¿é¤J

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-3-31 11:20 ½s¿è

¦^´_ 8# coafort

ÁÂÁ«e½ú¦^´_
«á¾ÇÂǦ¹©«½m²ßIJµo»P¦r¨å,¾Ç²ß¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò

°õ¦æ«e:


¿é¤J8ªº°õ¦æµ²ªG:


'¤u§@ªí¼Ò²Õ:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
With Target
     On Error Resume Next
     Names("_AAA").Delete
     On Error GoTo 0
     If .Row < 3 Or .Value = "" Then Exit Sub
     If .Column Mod 7 <> 1 Then Exit Sub
     Cancel = True
     Names.Add "_AAA", Target.Value
End With
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
With Target
   If .Row < 3 Or .Count > 1 Then Exit Sub
   If .Column Mod 7 = 4 Then
      Call ¶ñ¤J°t®§_¦h­Ó¦PªÑ¦W
   
      If Val(Y(.Offset(0, -3) & "|")) > 1 Then
         Application.EnableEvents = False
         Y(.Offset(0, -3) & "/").Value = .Value
         Application.EnableEvents = True
         Application.Goto Y(.Offset(0, -3) & "/")
         Set Y = Nothing
      End If
   End If
   If .Column Mod 7 = 6 Then
      Call ¶ñ¤J°tªÑ_¦h­Ó¦PªÑ¦W
   
      If Val(Y(.Offset(0, -5) & "|")) > 1 Then
         Application.EnableEvents = False
         Y(.Offset(0, -5) & "/").Value = .Value
         Application.EnableEvents = True
         Application.Goto Y(.Offset(0, -5) & "/")
         Set Y = Nothing
      End If
   End If
End With
End Sub

'Module1:
Option Explicit
Public Y
Sub ¶ñ¤J°t®§_¦h­Ó¦PªÑ¦W()
Dim Brr, C&, i&, R&
Set Y = CreateObject("Scripting.Dictionary")
Brr = ActiveSheet.UsedRange
For C = 1 To UBound(Brr, 2) Step 7
   For R = 3 To UBound(Brr)
      Y(Brr(R, C) & "|") = Y(Brr(R, C) & "|") + 1
      If Y(Brr(R, C) & "/") = "" Then
         Set Y(Brr(R, C) & "/") = Cells(R, C + 3)
         Else
            Set Y(Brr(R, C) & "/") = Union(Y(Brr(R, C) & "/"), Cells(R, C + 3))
      End If
   Next
Next
End Sub

Sub ¶ñ¤J°tªÑ_¦h­Ó¦PªÑ¦W()
Dim Brr, C&, i&, R&
Set Y = CreateObject("Scripting.Dictionary")
Brr = ActiveSheet.UsedRange
For C = 1 To UBound(Brr, 2) Step 7
   For R = 3 To UBound(Brr)
      Y(Brr(R, C) & "|") = Y(Brr(R, C) & "|") + 1
      If Y(Brr(R, C) & "/") = "" Then
         Set Y(Brr(R, C) & "/") = Cells(R, C + 5)
         Else
            Set Y(Brr(R, C) & "/") = Union(Y(Brr(R, C) & "/"), Cells(R, C + 5))
      End If
   Next
Next
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_  coafort

ÁÂÁ«e½ú¦^´_
«á¾ÇÂǦ¹©«½m²ßIJµo»P¦r¨å,¾Ç²ß¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò

°õ¦æ«e:


¿é¤J ...
Andy2483 µoªí©ó 2023-3-31 11:18


³ø§i¤j¤j
¥X²{¿ù»~
ÁÂÁ¤j¤j

TOP

¦^´_ 12# coafort


    ÁÂÁ«e½ú¦^´_
´ú¸ÕÀɦp¤U,½Ð«e½ú°Ñ¦Ò

ETF¦¨¤ÀªÑ_20230331_1.zip (40.32 KB)
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_  coafort


    ÁÂÁ«e½ú¦^´_
´ú¸ÕÀɦp¤U,½Ð«e½ú°Ñ¦Ò
Andy2483 µoªí©ó 2023-3-31 11:36


«D±`·PÁ¤j¤j
¤w¸g¥i¥H¤F:lol

TOP

¦^´_  coafort


    ÁÂÁ«e½ú¦^´_
´ú¸ÕÀɦp¤U,½Ð«e½ú°Ñ¦Ò
Andy2483 µoªí©ó 2023-3-31 11:36


½Ð°Ý¤j¤j
¦pªG¥¼¨Ó§Ú¦A¼W¥[·sªºÄæ¦ì
­n§ï­þ¸Ì©O¡H
ÁÂÁ¤j¤j

TOP

¦^´_ 15# coafort


    ¥@¨ÆÃø®Æ,¤dª÷Ãø¶R¦­ª¾¹D,±¡¹ÒÃø´ú,½Ð«e½ú¼·ªÅ¬ã¨s¤@¤U,¦Û¤v¸Õ§ï¬Ý¬Ý
¤£¶¶¹E¦p·N®É¦³½×¾Â²³«e½ú¥i¥H½Ð±Ð,¤@°_¾Ç²ß
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_  coafort


    ¥@¨ÆÃø®Æ,¤dª÷Ãø¶R¦­ª¾¹D,±¡¹ÒÃø´ú,½Ð«e½ú¼·ªÅ¬ã¨s¤@¤U,¦Û¤v¸Õ§ï¬Ý¬Ý
¤£¶¶¹E¦p·N ...
Andy2483 µoªí©ó 2023-3-31 15:32


ÁÂÁ¤j¤j
¨ì®É­Ô§Ú¦A¹Á¸Õ¬Ý¬Ý
¦p¦³°ÝÃD¦A³Â·Ð¤j¤j

TOP

¦^´_  coafort


    ¥@¨ÆÃø®Æ,¤dª÷Ãø¶R¦­ª¾¹D,±¡¹ÒÃø´ú,½Ð«e½ú¼·ªÅ¬ã¨s¤@¤U,¦Û¤v¸Õ§ï¬Ý¬Ý
¤£¶¶¹E¦p·N ...
Andy2483 µoªí©ó 2023-3-31 15:32


¤j¤j±z¦n
§Úµo²{¦³­Ó°ÝÃD
´N¬O§PÂ_¬O±q0056¨ºÃä¶}©l
¦pªG±q00713¨ºÃä¿é¤J¡A0056¡A00878³oÃ䪺¼Æ­È¤£·|¸òµÛÅÜ°Ê
½Ð°Ý¤j¤j¦³¸Ñ¶Ü
ÁÂÁÂ

TOP

¦^´_  coafort


    ¥@¨ÆÃø®Æ,¤dª÷Ãø¶R¦­ª¾¹D,±¡¹ÒÃø´ú,½Ð«e½ú¼·ªÅ¬ã¨s¤@¤U,¦Û¤v¸Õ§ï¬Ý¬Ý
¤£¶¶¹E¦p·N ...
Andy2483 µoªí©ó 2023-3-31 15:32


¤j¤j±z¦n
§Úµo²{¦³­Ó°ÝÃD
´N¬O§PÂ_¬O±q³Ì¥ªÃä0056¨ºÃä¶}©l
¦pªGÀx¦s®æªÅ¥Õ¡A±q00713¨ºÃä¿é¤J¡A¬Û¦PªÑ²¼ªº0056¡A00878³oÃ䪺¼Æ­È¤£·|¸òµÛ¥X²{
½Ð°Ý¤j¤j¦³¸Ñ¶Ü
ÁÂÁÂ

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-4-6 09:05 ½s¿è

¦^´_ 19# coafort


    ÁÂÁ«e½ú
«á¾Ç¾ÇÃÀ¤£ºë¤S°½Ãiªºµ²ªG
1.½Ð±N¨â³Bªºµ{¦¡½X   If Y(Brr(R, C) & "/") = "" Then §ï¬°
If Not Y.Exists(Brr(R, C) & "/") Then

Sorry
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤Hªº§Ö¼Ö¡D¤£¬O¦]¬°¥L¾Ö¦³±o¦h¡A¦Ó¬O¦]¬°¥L­p¸û±o¤Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD