- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2011-9-27 14:50 ½s¿è
¦^´_ 12# herhsiu - Option Explicit
- Sub ²Ä¤@¦C()
- Dim Str, A
- Str = "00:01:46 ¸ê®Æ = RAW values ( 'Z9.01','FG','90','SZ001.1','GL01',SYSDATE,'N','0.1','0.1' , '-0.0129','0.006','-0.0119','0.0305','-0.0047','-0.0066','-0.0158','0.0007', '-0.0233','-0.0057','-0.0124','0.0057','-0.0113','0.0174','0.0005','-0.0122', '-0.0136','-0.0074','-0.016','0.0003','0.0025','-0.0143','0.0031','0.0121', '0.0161','-0.0222','0.0013','-0.0118','0.0004','-0.0116','-0.0055','0.0155', '-0.0076','0.0391','0.0001','0.0117','-0.012','0.0159','-0.0137','0.0085')"
- A = InStr(Str, "SYSDATE,'N") ' ¶Ç¦^¼Æ¦r -> SYSDATE,'N ¦b Str¦r¦êªº¦ì¸m
- A = Mid(Str, A + 10) 'ºI°_Str¦r¦ê A+10 °_. '(SYSDATE,'N) ¦r¦êªø«× => 10
- Str = Mid(Str, 1, 8) & A 'µ²¦X ¨â¦r¦ê 'Mid(Str, 1, 8)->00:01:46
- Str = Replace(Str, "'", "") '®ø°£¦r¤¸ -> '
- Str = Mid(Str, 1, Len(Str) - 1) '§R°£³Ì«á¦r¤¸ -> )
- MsgBox Str
- Str = Split(Str, ",") '-> '±N¦r¦ê Âର°}¦C
- [A1].Resize(, UBound(Str)) = Str '°}¦C ©ñ¸m©ó¦C
- [A3].Resize(UBound(Str)) = Application.WorksheetFunction.Transpose(Str) '°}¦C ©ñ¸m©óÄæ
- End Sub
- Sub ²Ä¤G¦C()
- Dim Str As Variant, Ar(), A As Variant, i As Integer, ii As Integer, C As Integer, R As Integer
- Str = "00:01:47 EQS send GLData_V5 to DS. [RvMsg]: [primPrcdId]Z9.01 [lotId]SZ001.1 [GLAutoRecipeId]V90_20 [GLEqpId]GL01 [stage]FG [parentNo]0 [intraTranslationX]-0.001 [intraTranslationY]0.000 [intraMagnification]-0.038 [intraRotation]0.035 [interRotation]0.042 [interOrthogonality]-0.020 [interExpansionX]-0.130 [interExpansionY]-0.256 [interTranslationX]-0.009 [interTranslationY]0.004 [asymrotation]-0.760 [asymmagnification]-0.134 [FlagSet]-00068+00036+00000+01000"
- ReDim Ar(0) '«·s«Å§i°}¦Cºû«×
- Ar(0) = Mid(Str, 1, 8) '±NÈ«ü©wµ¹°}¦C
- A = InStr(Str, "[parentNo]") '¶Ç¦^¼Æ¦r -> [parentNo] ¦b Str¦r¦êªº¦ì¸m
- Str = Mid(Str, A + Len("[parentNo]")) 'ºI°_Str¦r¦ê A °_.
- Do
- ReDim Preserve Ar(UBound(Ar) + 1) '«·s«Å§i°}¦Cºû¼Æ ( ¥[1ºû¼Æ ) 'Preserve->«O¯d즳¸ê®Æ
- Ar(UBound(Ar)) = Val(Str) '±NÈ«ü©wµ¹ ->°}¦Cªº³Ì¤jºû¼Æ
- 'Val ->(Str) ¦r¦êÂà´«¬°¼Æ¦r
- A = InStr(Str, "]") '¶Ç¦^¼Æ¦r -> " ] " ¦b Str¦r¦êªº¦ì¸m
- Str = Mid(Str, A + 1) '
- Loop While InStr(Str, "]") '¦r¦ê¸Ì¦³"]" °õ¦æ¦^°é
- A = 0
- For i = 1 To Len(Str) Step 6 'Step 6 ->¨C¹j6¦r¤¸
- A = A + Val(Mid(Str, i, 6))
- Next
- ReDim Preserve Ar(UBound(Ar) + 1)
- Ar(UBound(Ar)) = A '³Ì«áªº¼Æ¦r«ü©wµ¹ ->°}¦Cªº³Ì¤jºû¼Æ
- With Sheet2
- C = .[A1].End(xlToRight).Column - 1 '¨ú±oÄæ¼Æ
- R = 2 'A2 ¶}©l
- i = 0 '°}¦Cªº²Ä¤@ºû
- Do While .Cells(R, "A") <> "" And i <= UBound(Ar) ' i <= UBound(Ar) -> °}¦Cªººû¼Æ¤º
- ii = 1 'Äæ¼ÆÂk¦^²Ä¤@Äæ
- Do While ii <= C And i <= UBound(Ar)
- .Cells(R, "A").Offset(, .Cells(R, "A") + ii) = Ar(i)
- 'Offset(, .Cells(R, "A") + ii) '.Cells(R, "A")-> ¨ú±oShift ¼Æ¦r ,ii(Äæ¼Æ)
- i = i + 1
- ii = ii + 1 '¤U¤@°}¦Cºû¼Æ
- Loop
- R = R + 1 '¤U¤@¦C
- Loop
- End With
- End Sub
½Æ»s¥N½X |
|