I have to copy data from a text file to excel
I tried recording it but all I managed to get was this:
I was wondering how to open the text file and copy all the contents into A1 (but without wrap text) so each line on the text file is a new one on the excel file - blanks included.
I tried recording it but all I managed to get was this:
VBA Code:
Sub Macro1()
'
' Macro1 Macro
'
'
Range("A1").Select
ActiveSheet.PasteSpecial Format:="Unicode Text", Link:=False, _
DisplayAsIcon:=False, NoHTMLFormatting:=True
End Sub
I was wondering how to open the text file and copy all the contents into A1 (but without wrap text) so each line on the text file is a new one on the excel file - blanks included.