VBA: 逐行讀取文件

sub streamread()
	dim rline as string
	dim idx as long
	open activeworkbook.path & "/stream read.csv" for input as #1
	do while not eof(1)
		line input #1, rline
		idx = idx + 1
	loop
	close #1
end sub


大型文件逐行讀取方法。

發佈了43 篇原創文章 · 獲贊 5 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章