OpenTextFileメソッドを使います。
実行プログラム
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Sub Sample7_15_1()     Dim objFSO   As Object     Dim lngRow   As Long     Set objFSO = CreateObject("Scripting.FileSystemObject")     With objFSO.OpenTextFile("C:\excelmemo\Sample7_15.csv", ForAppending)         lngRow = .Line - 1         .Close     End With     MsgBox lngRow & "行"     Set objFSO = Nothing End Sub | 




 
				