| ©«¤l2035 ¥DÃD24 ºëµØ0 ¿n¤À2031 ÂI¦W0  §@·~¨t²ÎWin7 ³nÅ骩¥»Office2010 ¾\ŪÅv100 ©Ê§O¨k µù¥U®É¶¡2012-3-22 ³Ì«áµn¿ý2024-2-1 
 | 
                
| ¦^´_ 23# Hsieh ¦^´_ 21# GBKEE
 §Ú±N GBKEE ª©¤jªº¼Ò²Õ¡B¥[¤W Hsieh ª©¤j´£¨Ñªº Function¡A
 ¨âªÌ²Õ¦X«áÁÙÆZ¹ê¥Îªº¡G
 ½Æ»s¥N½XSub Ex_¤é´Á¼ÆÈ3()
    Dim i  As Long, xl_Year As Variant
    With Range("B1:B" & [A1].End(xlDown).Row)
        For i = 1 To .Count
            .Cells(i) = ChDate(.Cells(i).Offset(, -1))
            If .Cells(i) <> "" Then .Cells(i).Offset(, 1) = CEDate(.Cells(i))
        Next
        '  .Offset(,-1)¡G ¥ª²¾ 1 Äæ (B -> AÄæ)¡F Resize(,3)¡G ±qAÄæ°_ÂX¥R¬°¤TÄæ (A¡BB¡BC ¤TÄæ)
        '  .Cells(1) = "2012¦~10¤ë12¤é"  (B Äæ)¡A .Cells(1).Offset(, 1) = "2012/10/12"  (C Äæ)
        '  .Offset(, -1).Resize(, 3).Sort Key1:=.Cells(1), Order1:=xlAscending, Header:=xlNo
        .Offset(, -1).Resize(, 3).Sort Key1:=.Cells(1).Offset(, 1), Order1:=xlAscending, Header:=xlNo
    End With
End Sub
ÁÂÁ¨â¦ìª©¤jªº¹©¤OÀ°¦£¡C½Æ»s¥N½XFunction ChDate(DateStr As String)
    '  DateStr¥²¶·¬O¥]§t"¤¤µØ¥Á°ê¦~¤ë¤é"ªº¦r¦ê
    Dim Mystr As String, s%
    
    s = InStr(DateStr, "¤¤µØ¥Á°ê") + 4
    If s = 4 Then ChDate = "": Exit Function
    Mystr = Mid(DateStr, s, InStr(s, DateStr, "¤é") - s + 1)
    ChDate = Replace(Mystr, Val(Mystr) & "¦~", Val(Mystr) + 1911 & "¦~")
End Function
Function CEDate(DateStr As String)    '  ¡uC.E.¡v¬O¡uCommon Era¡vªºÁY¼g¡A·N¬°¡u¤½¤¸¡v
    CEDate = CDate(DateStr)
End Function
 | 
 |