P
Poornima
Hi,
I want to convert the contents of a text file to a worksheet in my
workbook. The following code helps me to move the contents but the
allignment is all wrong.
Your_File_Name = "txtShipmentReport.txt"
Open Your_File_Name For Input As #1
Sheets.Add
Do While Not EOF(1)
Line Input #1, Data_From_File
Range("A1").Offset(Y, 0) = Data_From_File
Y = Y + 1
Loop
Close #1
Is there any way to solve this??? I tried using the following code
also:
Call Workbooks.OpenText(txtShipmentReport, , , ,
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True)
But it creates a new workbook, which i do not want.
I have to convert 3 text files and then search on a few conditions to
create the final output.
I'm new to VBA and hence am really stuck with this thing. Anybody out
there can help me would b really wonderful.
Thanks in Advance,
Poornima.
I want to convert the contents of a text file to a worksheet in my
workbook. The following code helps me to move the contents but the
allignment is all wrong.
Your_File_Name = "txtShipmentReport.txt"
Open Your_File_Name For Input As #1
Sheets.Add
Do While Not EOF(1)
Line Input #1, Data_From_File
Range("A1").Offset(Y, 0) = Data_From_File
Y = Y + 1
Loop
Close #1
Is there any way to solve this??? I tried using the following code
also:
Call Workbooks.OpenText(txtShipmentReport, , , ,
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True)
But it creates a new workbook, which i do not want.
I have to convert 3 text files and then search on a few conditions to
create the final output.
I'm new to VBA and hence am really stuck with this thing. Anybody out
there can help me would b really wonderful.
Thanks in Advance,
Poornima.