|
如果文件路径没错的话,OPEN语句仍用原来的
Sub extract_channel_information()
Application.DisplayAlerts = False
Application.ScreenUpdating = False
For itxt = 7 To 12
C = Sheets("path and name ").Range("D" & itxt)
F = ThisWorkbook.Path & Mid(C, InStrRev(C, "\"))
Open F For Input As #1
arr = Split(StrConv(InputB(LOF(1), 1), vbUnicode), vbCrLf)
Close #1
For i = 0 To UBound(arr)
If arr(i) <> "" Then Sheets("extract information").Cells(3 + i, itxt - 5) = Split(arr(i), Chr(9))(2)
Next i
Next itxt
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub
|
评分
-
2
查看全部评分
-
|