![]()
Sub Test() Dim FSO As Object, MyFile As Object Dim FileName As String, Arr As Variant FileName = "Z:\xxxxxxx" ' change this to your text file full name Set FSO = CreateObject("Scripting.FileSystemObject") Set MyFile = FSO.OpenTextFile(FileName, 1) Arr = Split(MyFile.ReadAll, vbNewLine) ' Arr is zero-based array 'For test 'Fill column A from this Array Arr Range("A1").Resize(UBound(Arr) + 1, 1).Value = Application.Transpose(Arr) End Sub
Bookmarks