½Ð±Ðª©¥D¤Î¦U¦ì°ª¤â:¦p¦ó¦b¦hÓ¸s²Õ¸Ì·s¼W§Ç¸¹¨Ã¦Û°Ê¶i¦ì?
- ©«¤l
- 95
- ¥DÃD
- 29
- ºëµØ
- 0
- ¿n¤À
- 150
- ÂI¦W
- 0
- §@·~¨t²Î
- windows2003
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Kaoshiung
- µù¥U®É¶¡
- 2010-11-5
- ³Ì«áµn¿ý
- 2018-2-8
|
½Ð±Ðª©¥D¤Î¦U¦ì°ª¤â:¦p¦ó¦b¦hÓ¸s²Õ¸Ì·s¼W§Ç¸¹¨Ã¦Û°Ê¶i¦ì?
Dear ª©¥D¤Î¦U¦ì°ª¤â:
¤p§Ì·Q¦p¦ó¦b¦hÓ¸s²Õ¸Ì·s¼W§Ç¸¹¨Ã¦Û°Ê·j´M«ü©w¸s²Õªº³Ì«á§Ç¸¹,¨Ã¦Û°Ê¶i¦ì?
³o¨Ç¸s²Õ·|¦b¦P¤@BÄæ¸Ì,¤@²Õ¦³6Ӧ줸,¥ª°_²Ä1,2¦ì¤¸¬°¶g§OWeeknum,¥ª°_²Ä3,4¦ì¤¸¬°¸s²Õ§O,¥ª°_²Ä5,6¦ì¤¸«h¬°§Ç¸¹,¤À§O¬°0~9~A~Z,·í²Ä6¦ì¤¸¨ìZ®É«h¦Û°Ê¶i¦ì²Ä5¦ì¤¸+1
·s¼W Microsoft Excel ¤u§@ªí.zip (18.74 KB)
|
|
|
|
|
|
|
- ©«¤l
- 95
- ¥DÃD
- 29
- ºëµØ
- 0
- ¿n¤À
- 150
- ÂI¦W
- 0
- §@·~¨t²Î
- windows2003
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Kaoshiung
- µù¥U®É¶¡
- 2010-11-5
- ³Ì«áµn¿ý
- 2018-2-8
|
¦^´_ 2# GBKEE
¤£¦n·N«ä,¤p§Ì¤j·§¼g¤F¤@¬q´N¥u¯à®Ú¾Ú³Ì«á¤@µ§¤§¸ê®Æ§@·s¼W¤Î§Ç¸¹¤§¶i¦ì,«á¨Ó·Q¨ì¦]¬°¼Æ¾Ú¤¤²VÂø«Ü¦h¤£¦P¸s²Õ,¤£¦P¸s²Õªº°_©l§Ç¸¹§¡¤£¦P,- Sub FindNewSeq()
- Dim lastStr$, r%, LAsc%, RAsc%, RChr$, LChr$, ThisWeekNm%
- '0~9:48~57
- 'A~Z:65~90
- With Sheets(1)
- r = .Range("C65536").End(xlUp).Row
- lastStr = .Cells(r, 3)
- ThisWeekNm = Application.WorksheetFunction.WeekNum(Date)
- If Len(lastStr) > 6 Or Len(lastStr) < 11 Then
- response = MsgBox("½Ð°Ý¬O§_¼W¥[¤l§å:", 4, "´£¥Ü")
- If response = vbNo And Len(lastStr) = 6 Then
- 'µL¤l§å¤]¤£·Q¼W¥[¤l§å
- LAsc = Asc(Right(lastStr, 2))
- RAsc = Asc(Right(lastStr, 1))
- If RAsc < 57 And RAsc > 47 Then
- RAsc = RAsc + 1
- ElseIf RAsc = 57 Then
- RAsc = RAsc + 8
- ElseIf RAsc < 90 And RAsc > 65 Then
- RAsc = RAsc + 1
- ElseIf RAsc = 90 Then
- LAsc = LAsc + 1
- RAsc = 48
- Else
- RAsc = RAsc + 1
- End If
- RChr = Chr(RAsc)
- LChr = Chr(LAsc)
- .Cells(r + 1, 3) = ThisWeekNm & "DM" & LChr & RChr
- Else
- If response = vbYes And Len(lastStr) = 6 Then
- 'µL¤l§å±ý¼W¥[¤l§å
- RAsc = Asc(Right(lastStr, 1))
- LAsc = Asc(Right(lastStr, 2))
- RAsc = RAsc + 1
- RChr = Chr(RAsc)
- LChr = Chr(LAsc)
- response2 = MsgBox("¬O§_®Ú¾Ú¤W¤@§å·s¼W¤l§å(Yes/No) ?", 4, "´£¥Ü")
- If response2 = vbNo Then
- '¤£®Ú¾Ú¤W§åID,¦Ó·s¼WID¤Î¤l§å
- .Cells(r + 1, 3) = ThisWeekNm & "DM" & LChr & RChr & "B001"
- ElseIf response2 = vbYes Then
- '®Ú¾Ú¤W§åID§@·s¼W¤l§å
- .Cells(r + 1, 3) = lastStr & "B001"
- End If
- ElseIf response = vbYes And Len(lastStr) = 10 Then
- '¦³¤l§å±ý¼W¥[¤l§å
- RAsc = Asc(Right(lastStr, 1))
- RAsc = RAsc + 1
- RChr = Chr(RAsc)
- .Cells(r + 1, 3) = Left(lastStr, 9) & RChr
- Else
- '¦³¤l§å¤£·Q¼W¥[¤l§å
- LAsc = Asc(Right(lastStr, 6))
- RAsc = Asc(Right(lastStr, 5))
- If RAsc < 57 And RAsc > 47 Then
- RAsc = RAsc + 1
- ElseIf RAsc = 57 Then
- RAsc = RAsc + 8
- ElseIf RAsc < 90 And RAsc > 65 Then
- RAsc = RAsc + 1
- ElseIf RAsc = 90 Then
- LAsc = LAsc + 1
- RAsc = 48
- Else
- RAsc = RAsc + 1
- End If
- RChr = Chr(RAsc)
- LChr = Chr(LAsc)
- .Cells(r + 1, 3) = ThisWeekNm & "DM" & LChr & RChr
- End If
- End If
- End If
- End With
- End Sub
½Æ»s¥N½X
°ÝÃD1_2013-05-21.zip (22.75 KB)
|
|
|
|
|
|
|