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

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

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

ª½¦¡¤é´Á+¬P´Á¤½¦¡¤§ºÃ´b...

¦p¤U¹Ï©Ò¥Ü

B4¤½¦¡¬°  =IFERROR(IF(WEEKDAY(A4,2)=7,"¤é",WEEKDAY(A4,2)),"")

½Ð°Ý¸Ó¦p¦ó­×¥¿??



1120503.rar (21.09 KB)

¦^´_ 14# Andy2483

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

¦~(¤ë)¥÷³]©w¥kÁä«ü©w¥¨¶°´N¯à¹F¦¨©Ò»Ýµ²ªG¡K·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

¦^´_ 12# Andy2483

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

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

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

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

¦^´_ 10# Andy2483

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

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

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

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-5-15 08:28 ½s¿è

¦^´_ 9# cypd


    ÁÂÁ«e½ú¦^´_,¤@°_¾Ç²ß
«á¾Ç¤µ¤Ñ½Æ²ß³o©«,¤è®×¾Ç²ß¤ß±oµù¸Ñ¦p¤U,½Ð«e½ú°Ñ¦Ò

Option Explicit
Sub TEST_2()
Dim Brr, i&, Y%, M%, D1 As Date, D2 As Date
'¡ô«Å§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¤Ñ)
'¡ô¥OD2ÅܼƬO¦Û¨­¤é´Áªº«e¤@¤Ñ(¤]´N¬O¤W­Ó¤ëªº³Ì«á¤@¤Ñ)
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 + i + 1: Brr(i * 2 + 1, 2) = Right(Format(D1 + i + 1, "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®æ©³¦â¥ýÅܬ°®ç¬õ¦â
   Next
   .Value = Brr
   '¡ô¥OBrr°}¦C­È¼g¤JÀx¦s®æ¤¤
End With
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 8# Andy2483

«D±`·PÁÂ Andy2483

¹ê´ú¤§«á°õ¦æ¶¶ºZ...·PÁÂ

TOP

ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú
«á¾ÇÂǦ¹©«½m²ßVBAªº¤èªk,¾Ç²ß¤è®×¦p¤U:

Option Explicit
Sub TEST_2()
Dim Brr, i&, Y%, M%, D1 As Date, D2 As Date, N%
Y = [AH1] + 1911: M = [AH2]: D1 = Y & "/" & M & "/" & "1"
Y = IIf(M = 12, Y + 1, Y): M = IIf(M = 12, 1, M + 1)
D2 = Y & "/" & M & "/" & "1": D2 = D2 - 1
With [A4:B65]
   .ClearContents: Brr = .Value: .FormatConditions.Delete: .Interior.ColorIndex = xlNone
   For i = 0 To (D2 - D1)
      Brr(i * 2 + 1, 1) = D1 + N: Brr(i * 2 + 1, 2) = Right(Format(D1 + N, "aaa"), 1)
      If InStr("¤»¤é", Brr(i * 2 + 1, 2)) Then Cells(i * 2 + 4, "B").Interior.ColorIndex = 38
      N = N + 1
   Next
   .Value = Brr
End With
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

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

·PÁ ­ã´£³¡ªL ...

¤w°Ñ°u  ¥Á°ê¦~, +1911

©Ò´£°ÝÃD¤w­×¥¿§¹¦¨  ^^

TOP

        ÀR«ä¦Û¦b : ¦³Ä@©ñ¦b¤ß¸Ì¡A¨S¦³¨­Åé¤O¦æ¡A¥¿¦p¯Ñ¥Ð¤£¼½ºØ¡A¬Ò¬OªÅ¹L¦]½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD