- 帖子
- 4901
- 主題
- 44
- 精華
- 24
- 積分
- 4916
- 點名
- 142
- 作業系統
- Windows 7
- 軟體版本
- Office 20xx
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台北
- 註冊時間
- 2010-4-30
- 最後登錄
- 2026-7-16
                
|
回復 1# cmo140497
看不懂 wafer map的繪製邏輯
取得文字檔請參考- Sub nn()
- Dim Ar()
- fs = Dir(ThisWorkbook.Path & "\*.txt")
- Open ThisWorkbook.Path & "\" & fs For Input As #1
- Do While Not EOF(1) ' 執行迴圈直到檔尾為止。
- Line Input #1, Mystr ' 讀入一行資料並將之指定給變數。
- If Mystr = "SampleDieMap 175" Then y = True
- If Mystr = "InspectionTest 1;" Then y = False
- If y = True Then
- ReDim Preserve Ar(s)
- Ar(s) = Split(Replace(Mystr, ";", ""), " ")
- s = s + 1
- End If
- Loop
- Close #1
- [E1].Resize(s, 2) = Application.Transpose(Application.Transpose(Ar))
- End Sub
複製代碼 |
|