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

µ{¦¡¶}±Ò«áª½±µ¨ú±o¤µ¤é¤é´ÁµJÂI

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-4-7 08:40 ½s¿è

¦^´_ 1# coafort


    ÁÂÁ«e½úµoªí¦¹¥DÃD
«á¾ÇÂǦ¹©«½m²ß¦r¨å»PÀx¦s®æ¶°Union(),¾Ç²ß¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò

°õ¦æ«e:


°õ¦æµ²ªG:



Option Explicit
Sub TEST()
Dim Y, xR As Range, Ra As Range, xD
Set Y = CreateObject("Scripting.Dictionary")
Set xR = ActiveSheet.UsedRange
For Each Ra In xR.SpecialCells(2)
   On Error Resume Next
   If IsDate(CDate(Ra)) = False Then GoTo i01
   On Error GoTo 0
   xD = CDate(Ra) & ""
   If Not Y.Exists(xD) Then
      Set Y(xD) = Ra
      Else
      Set Y(xD) = Union(Y(xD), Ra)
   End If
   
i01:
Next
Application.Goto Y(Date & ""): MsgBox "¤µ¤Ñ"
Application.Goto Y(Date + 1 & ""): MsgBox "©ú¤Ñ"
Application.Goto Y(Date + 2 & ""): MsgBox "«á¤Ñ"
Set Y = Nothing: Set xR = Nothing: Set Ra = Nothing
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

        ÀR«ä¦Û¦b : ­n§åµû§O¤H®É¡A¥ý·Q·Q¦Û¤v¬O§_§¹¬üµL¯Ê¡C
ªð¦^¦Cªí ¤W¤@¥DÃD