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

[µo°Ý] ½Ð°Ý¥X¶Ô¨t²Î³]­p

¦^´_ 86# c_c_lai


    ·PÁÂc_c_lai ¤jªº¥Î¤ß~¨t²Î¤w¸gReleaseµ¹¤H­û¨Ï¥Î ,³o´X¤Ñ«ùÄòÆ[¹î , ¬O§_¦³°ÝÃD¡I¡I¡I

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-9-10 08:16 ½s¿è

¦^´_ 84# v03586
§Ú¦b¤H­û¦^³ø«e¥[¤F¤@¬q²M°£ "Actual (D3 Äæ)"µ¥Äæ­Èªº°Ê§@¡A
¥HÆ[¹î¨ä¸ê®Æ¬O§_¥¿½T¼g¤J¡C
  1. Sub Main()       '  ¨Ï¥Î Main µ{¦¡«e¡A »Ý¥ý«ü©w ¡yxDay¡z ªº¤é´Á
  2.     Dim e As Variant, Rng As Range, cts As Integer      '  , loc As String
  3.    
  4.     Set ¦^³ø¯Z§O = CreateObject("SCRIPTING.DICTIONARY")
  5.     Set ¤H­û¦^³ø = CreateObject("SCRIPTING.DICTIONARY")
  6.    
  7.     ¤H¤O¸ê®ÆŪ¨ú
  8.     Main_¦^³ø²M°£
  9.    
  10.     '  2016/9/10  Modified by C. C. Lai
  11.     With Sheets("¤H­û¦^³ø")
  12.         For Each e In Array(.Range("D5"), .Range("D28"), .Range("D51"))
  13.             e.Resize(3).Value = ""                 '  Actual (D3 Äæ)
  14.             e.Offset(, 1) = ""                     '  ** (¯Z§O) Á`¤H¼Æ
  15.             e.Offset(4, -1).Resize(8).Value = ""   '  ** (¯Z§O¦U±Mªø) ¤H¼Æ
  16.         Next
  17.     End With
  18.    
  19.     For cts = 1 To 2   '  ²Ä¤@¶¥¬q(cts=1)¥H¥¿±`¯Z§O¬°§PÂ_°ò·Ç¡F²Ä¤G¶¥¬q(2)«h¯Â¥H¥[¯Z¯Z§O¬°§PÂ_°ò·Ç¡C
½Æ»s¥N½X

TOP

¦^´_ 84# v03586
¦A¦h¦h´ú¸Õ¡A¦p¦¹¤~¯à´ú¥X¨äí©w¡B¥¿½T©Ê¡C

TOP

¦^´_ 81# c_c_lai


    Sorry sir .....
²ö¦W¨ä§®¤S¦n¤F¡I ³y¦¨¤£«K¤§³B½Ð­ì½Ì....

TOP

¦^´_ 81# c_c_lai


    ½T»{«á,,, ¬O§Ú­Ó¤H­×§ï¿ù»~°ÝÃD....¤w­×¥¿....¥t¥~·Q°Ý¤@¤U
   ¥Ø«eµ{¦¡¥X²{¤@­Ó°ÝÃD,  ´N¬O·s¼W²Ä¤G¯Z¤H­û«á, ¤H­û¦^³ø¸ê®Æªí¡y²Ä¤G¯ZÁ`¤H¼Æ¡z¤£·|¦Û°Ê¥[Á` !! ¦³´ú¸Õ¹L 1 , 3 ¯Z³£¨S°ÝÃD
     

       ¥tµ{¦¡³¡¤À K²Õ  ±ø¥ó§Ú¤§«e³]¿ù¤F  §Ú¦³­×§ï ,  K²Õ §«ô¤@ ¬O¨Ò°²¤é , §«ô¤G¬O¥ð®§¤é
      µ{¦¡½X­×§ï¦p¤U !! À³¸Ó¨S¿ù»~§a@@....§Ú¥h¥X¶Ô§ó·s¥h§PÂ_¬O¥¿½Tªº!!
  1. Private Function OverTime(²Õ§O As Variant) As String
  2.      '  <= 6   V²Õ ¤»-¥ð®§¤é /  P²Õ ¤é-¥ð®§¤é / K²Õ ¤G-¥ð®§¤é
  3.      '  >6     V²Õ ¤é-¥ð®§¤é /  P²Õ ¤»-¥ð®§¤é / K²Õ ¤G-¥ð®§¤é
  4.      '  If Month(xDay) <= 6 And (Weekday(xDay) = 7 Or Weekday(xDay) = 6) Then OverTime = True
  5.      '  If Month(xDay) > 6 And (Weekday(xDay) = 1 Or Weekday(xDay) = 7) Then OverTime = True
  6.      OverTime = "¥X¶Ô¤é"
  7.      If Month(xDay) <= 6 Then
  8.         Select Case ²Õ§O.Name
  9.              Case "V"
  10.                 If Weekday(xDay) = 7 Then OverTime = "¥ð®§¤é"
  11.                 If Weekday(xDay) = 1 Then OverTime = "¨Ò°²¤é"
  12.             Case "K"
  13.                 If Weekday(xDay) = 3 Then OverTime = "¥ð®§¤é"
  14.                 If Weekday(xDay) = 2 Then OverTime = "¨Ò°²¤é"
  15.             Case Else
  16.                 If Weekday(xDay) = 1 Then OverTime = "¥ð®§¤é"
  17.                 If Weekday(xDay) = 7 Then OverTime = "¨Ò°²¤é"
  18.         End Select
  19.     ElseIf Month(xDay) > 6 Then
  20.         Select Case ²Õ§O.Name
  21.              Case "P"
  22.                 If Weekday(xDay) = 7 Then OverTime = "¥ð®§¤é"
  23.                 If Weekday(xDay) = 1 Then OverTime = "¨Ò°²¤é"
  24.              Case "K"
  25.                 If Weekday(xDay) = 3 Then OverTime = "¥ð®§¤é"
  26.                 If Weekday(xDay) = 2 Then OverTime = "¨Ò°²¤é"
  27.             Case Else
  28.                 If Weekday(xDay) = 1 Then OverTime = "¥ð®§¤é"
  29.                 If Weekday(xDay) = 7 Then OverTime = "¨Ò°²¤é"
  30.         End Select
  31.     End If
  32. End Function
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ v03586 ©ó 2016-9-9 20:55 ½s¿è

¦^´_ 81# c_c_lai


    §Ú¬O¥Î#79¼Ó³Ì·sª©¥» , ÂI¿ï ¡y¥X¶Ô§ó·s¡zªº Userfrom ´N¥X¿ù¤F!! À³¸Ó¬O§Ú¦³§ï¨ì¤°»ò, §Ú¦b¬ã¨s¤@¤U

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-9-9 07:27 ½s¿è

¦^´_ 80# v03586
§A¥ý§â¾Þ§@¹Lµ{´y­z¤@¦¸¡A¥X²{¿ù»~°T®§«á¿ï«ö "°»¿ù"
µM«á§A¦A§â±µ¤U¨Ó¥u¨ì¿ù»~ÂIªºµe­±§i¶D§Ú¡C
§Ú¤]ÆZ¦n©_¬O­þ¸Ì¶V¬É¤F¡H
½Ð°Ý§A¬O¨Ï¥Î¤W¶Çªº  "¤H­û¤H¤O¦^³øªí0907R1" ÀÉ®×´ú¸Õªº¶Ü¡H

TOP

¦^´_ 79# c_c_lai

       ·PÁ¨ó§U, ¤µ¤é´ú¸Õ¥X²{Error Code ¶W¥X°}¦C¤Þ¯Á½d³ò !!
          §Ú«ç»ò¬Ý³o­Ó¿ù»~«ç»ò·|¿ù¦b©I¥sµ{¦¡ªº¦a¤è.....
    ssss.png

TOP

¦^´_ 76# v03586
ªþ¤W§ó·sµ{¦¡¡G
¤H­û¤H¤O¦^³øªí0907R1.rar (418.9 KB)

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-9-8 19:59 ½s¿è

¦^´_ 76# v03586
§ä¨ì­ì¦]¤F¡C
  1. Sub Main()       '  ¨Ï¥Î Main µ{¦¡«e¡A »Ý¥ý«ü©w ¡yxDay¡z ªº¤é´Á
  2.     Dim e As Variant, Rng As Range, cts As Integer      '  , loc As String
  3.    
  4.     Set ¦^³ø¯Z§O = CreateObject("SCRIPTING.DICTIONARY")
  5.     Set ¤H­û¦^³ø = CreateObject("SCRIPTING.DICTIONARY")
  6.    
  7.     ¤H¤O¸ê®ÆŪ¨ú
  8.     Main_¦^³ø²M°£
  9.    
  10.    
  11.     For cts = 1 To 2   '  ²Ä¤@¶¥¬q(cts=1)¥H¥¿±`¯Z§O¬°§PÂ_°ò·Ç¡F²Ä¤G¶¥¬q(2)«h¯Â¥H¥[¯Z¯Z§O¬°§PÂ_°ò·Ç¡C
  12.         Main_¦^³ø¸ê®Æ (cts)                     '  2016/09/01 Modied by C. C. Lai
  13.         
  14.         If ¦^³ø¯Z§O.Count = 0 Then
  15.             Msg = True
  16.             MsgBox Format(xDay, "YYYY¤ëMM¥÷ !") & " ¨S¦³¥X¶Ô¤H­û"
  17.             Exit Sub
  18.         End If
½Æ»s¥N½X
¦b²Ä¤G¶¥¬q¡A¦³¥i¯à¥þµL "©µªø¥[¯Z"¡A ¬GÀ³ÀH§Y¸õÂ÷¥»°õ¦æ¤¤¼Ò²Õ¡C
­×¥¿¬°¡G
  1. Sub Main()       '  ¨Ï¥Î Main µ{¦¡«e¡A »Ý¥ý«ü©w ¡yxDay¡z ªº¤é´Á
  2.     Dim e As Variant, Rng As Range, cts As Integer      '  , loc As String
  3.    
  4.     Set ¦^³ø¯Z§O = CreateObject("SCRIPTING.DICTIONARY")
  5.     Set ¤H­û¦^³ø = CreateObject("SCRIPTING.DICTIONARY")
  6.    
  7.     ¤H¤O¸ê®ÆŪ¨ú
  8.     Main_¦^³ø²M°£
  9.    
  10.    
  11.     For cts = 1 To 2   '  ²Ä¤@¶¥¬q(cts=1)¥H¥¿±`¯Z§O¬°§PÂ_°ò·Ç¡F²Ä¤G¶¥¬q(2)«h¯Â¥H¥[¯Z¯Z§O¬°§PÂ_°ò·Ç¡C
  12.         Main_¦^³ø¸ê®Æ (cts)                     '  2016/09/01 Modied by C. C. Lai
  13.         
  14.         If ¦^³ø¯Z§O.Count = 0 Then
  15.             Msg = True
  16.             [color=Red]If cts = 1 Then[/color]
  17.                 MsgBox Format(xDay, "YYYY¤ëMM¥÷ !") & " ¨S¦³¥X¶Ô¤H­û"
  18.             [color=Red]ElseIf cts = 2 Then[/color]   '  ¦b²Ä¤G¶¥¬q¡A¦³¥i¯à¥þµL "©µªø¥[¯Z"¡A ¬GÀH§Y¸õÂ÷¥»°õ¦æ¤¤¼Ò²Õ¡C
  19.                 [color=Red]Msg = False
  20.             End If[/color]
  21.             Exit Sub
  22.         End If
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¡i®É¤é²öªÅ¹L¡j¤@­Ó¤H¦b¥@¶¡°µ¤F¦h¤Ö¨Æ¡A´Nµ¥©ó¹Ø©R¦³¦hªø¡C¦]¦¹¥²¶·»P®É¶¡Ävª§¡A¤Á²ö¨Ï®É¤éªÅ¹L¡C
ªð¦^¦Cªí ¤W¤@¥DÃD