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

[µo°Ý] ª½¦¡¤é´Á+¬P´Á¤½¦¡¤§ºÃ´b...

¦^´_ 10# Andy2483

«D±`·PÁ Andy2483 ¦A«×§ó·s

¨Ì©Ò¦¡¤§µ{¦¡½X´ú¸Õµ²ªG

°_©l¤é´Á¤Ö¤@¤Ñ...

TOP

¦^´_ 11# cypd


    ÁÂÁ«e½ú
«á¾Ç§zÔ¬§]´Çªº¾Ç²ß·Q¥²§xÂZ¦U¦ì¤F,ÁÂÁ½׾ªº¥]®e,ÁÂÁ¦U¦ì«e½ú«ü±Ð
«á¾Ç­q¥¿¦p¤Uªº¾Ç²ß¤è®×¤ß±oµù¸Ñ,½Ð«e½ú°Ñ¦Ò


Option Explicit
Sub TEST_2()
Dim Brr, i&, Y%, M%, D1 As Date, D2 As Date, N%
'¡ô«Å§iÅܼÆ
Y = [AH1] + 1911: M = [AH2]: D1 = Y & "/" & M & "/" & "1"
'¡ô¥OYÅܼƬO [AH1]Àx¦s®æ­È+1911,
'¥OMÅܼƬO [AH2]Àx¦s®æ­È,
'¥OD1³o¤é´ÁÅܼƬO ¦è¤¸¦~/¤ë/1

Y = IIf(M = 12, Y + 1, Y): M = IIf(M = 12, 1, M + 1)
'¦pªG¤ë¥÷¬O12,´N¥O¦~¤À+1,
'¦pªG¤ë¥÷¬O12,´N¥O¤ë¥÷¬O 1¤ë,§_«h´N±N¤ë¥÷+1,
'³o¬O­n³B¸Ì¸ó¦~¿ë»{12¤ë³Ì«á¤@¤Ñ

D2 = Y & "/" & M & "/" & "1": D2 = D2 - 1
'¡ô¥OD2³o¤é´ÁÅܼƬO ¦è¤¸¦~/¤ë/1 (D2¬O¤U­Ó¤ëªº²Ä1¤Ñ)
With [A4:B65]
'¡ô¥H¤U¬OÃö©óÀx¦s®æªºµ{§Ç
   .ClearContents: Brr = .Value
   '¡ô²M°£Àx¦s®æ¤º®e
   .FormatConditions.Delete
   '¡ô§R°£®æ¦¡¤Æ±ø¥ó
   .Interior.ColorIndex = xlNone
   '¡ô¥OÀx¦s®æ©³¦â¬O µL¦â
   For i = 0 To (D2 - D1)
   '¡ô³]¶¶°j°é
      Brr(i * 2 + 1, 1) = D1 + N: Brr(i * 2 + 1, 2) = Right(Format(D1 + N, "aaa"), 1)
      '¡ô¥O¤é´Á»P¬P´Á¼g¤JBrr°}¦C¸Ì
      If InStr("¤»¤é", Brr(i * 2 + 1, 2)) Then Cells(i * 2 + 4, "B").Interior.ColorIndex = 38
      '¡ô¥O§Y±N¬O¬P´Á¤»¤éªºÀx¦s®æ©³¦â¥ýÅܬ°®ç¬õ¦â
      N = N + 1
      '¡ô¥ONÅܼƲ֥[ 1
   Next
   .Value = Brr
   '¡ô¥OBrr°}¦C­È¼g¤JÀx¦s®æ¤¤
End With
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 12# Andy2483

«D±`·PÁ Andy2483 ¦A«×§ó·s

¸g¹ê´ú¥¿±`Åã¥Ü

¤µ§Æ±æ¸g¥ÑÂIÀ» ¦~ ©Î ¤ë ¤W¤UÁä®É...¤é´Á¤Î¬P´Á¯à¦Û°Ê§ó·sÅã¥Ü¸Ó¦p¦ó­×¥¿µ{¦¡¶Ü??

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-5-22 07:52 ½s¿è

¦^´_ 13# cypd


    ÁÂÁ«e½ú¦A¦^´_
¥kÁä«ü©w¥¨¶°:


¿é¤J TEST_2:


¦~¥÷¦P¼Ëªº¤è¦¡³]©w
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 14# Andy2483

«D±`·PÁ Andy2483 ¤£§[«ü¾É

¦~(¤ë)¥÷³]©w¥kÁä«ü©w¥¨¶°´N¯à¹F¦¨©Ò»Ýµ²ªG¡K·P®¦°Ú  ^^

TOP

        ÀR«ä¦Û¦b : §g¤l¦p¤ô¡AÀH¤è´N¶ê¡AµL³B¤£¦Û¦b¡C
ªð¦^¦Cªí ¤W¤@¥DÃD