- ©«¤l
- 83
- ¥DÃD
- 17
- ºëµØ
- 0
- ¿n¤À
- 105
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- XP
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2010-12-28
- ³Ì«áµn¿ý
- 2018-8-8
|
¦^´_ ¤p«L«È
GBKEE µoªí©ó 2012-8-24 12:05 
§Ú¤]¥Î¹LREPLACE¡A¦ý·í³B²z¦h©ó¤@ÓSPACE©Î¯S§O²Å¸¹®É´N·|¥X°ÝÃD¡Aì¨Ó¥i¥H¥ÎSTRING + LOOPªº¤èªk
¨ü±Ð¤F¡C
¥t¥~¡A§Ú¥i¥H¦h°Ý¤@Ó°ÝÃD¶Ü¡H¬OÃö©ó¤ÀªR¦r¦ê®É¦h±ø¥ó¿ï¾Üªº°ÝÃD
¨Ò¦p¡G§Ún¨ü³XªÌ¦^µª¥L¤l¤kªº¾Ç®Õ°Ï¤À©M¾Ç¾ú¡A¦pªG¨S¦³¤l¤k¡Aµª®×¯dªÅ¡AÂ൪¤U¤@ÃD- If Ien(raw.Cells(i, 3)) > 0 Then
- If InStr(raw.Cells(i, 3), "¤p¾Ç") + InStr(raw.Cells(i, 3), "ªì¤p") > 0 Then
- type = "primary"
- GoTo Define_unit
- ElseIf InStr(raw.Cells(i, 3), "ªì¤¤") + InStr(raw.Cells(i, 3), "°ê¤¤")+ InStr(raw.Cells(i, 3), "°ª¤¤") > 0 Then
- type = "secondary"
- GoTo Define_unit
- ElseIf InStr(raw.Cells(i, 3), "¤j¾Ç") + InStr(raw.Cells(i, 3), "¤j±M")> 0 Then
- type = "Uni"
- GoTo Define_unit
-
- ElseIf InStr(raw.Cells(i, 3), "¬ã¨s©Ò") + InStr(raw.Cells(i, 3), "³Õ¤h") > 0 Then
- type = "Master+"
- GoTo Define_unit
-
- End If
-
- Define_unit:
- If InStr(raw.Cells(i, 3), "¥xÆW") > 0 Then unit = "TW"
- If InStr(raw.Cells(i, 3), "»´ä") > 0 Then unit = "HK"
- If InStr(raw.Cells(i, 3), "¬ü°ê") > 0 Then unit = "US"
- End If
½Æ»s¥N½X ¨Ò¦p¡Gµª®×¬O¡A§Ú¨à¤l¬O¦b¬ü°êŪ°ª¤¤
¨º»òunit = "US", TYPE=secondary
¦ý³o¸Ì¦³«Ü¦hIF THEN¡A¤S¤Óªø¡A¦³ÂI²V¶Ã¡C§Ú±N¤§§ï¥ÎGOTO¡A¤£¥Î«½Æ¥X²{´X¦¸¬Û¦üªº¥y¤l¡C¦ý½Ð°Ý¥i¥H§ï¥Îselect case©Î¨ä¥L¤èªk²¤Æ¶Ü¡HÁÂÁ |
|