- 积分
- 17084
- 明经币
- 个
- 注册时间
- 2003-2-26
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-3-27 16:06:00
|
显示全部楼层
楼主用这个吧,如果是多列就改j的值
Sub tt() Dim i As Integer Dim j As Integer Dim hz As Variant Dim hsz() As Double Dim ltext() As Variant Dim textline() As String i = 1 Open "l:\tt.txt" For Input As #1 Do While Not EOF(1) ReDim Preserve textline(i) ReDim Preserve ltext(i, 2) Line Input #1, textline(i) hz = Split(textline(i), ",") For j = 0 To 2 ltext(i, j) = hz(j) 'Debug.Print ltext(i, j) Next
Loop
End Sub |
|