Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, i'm trying to import a text file into xls, and i've got it all done, but
have a litle problem with this: Open Filename For Input As #1 Do While Not EOF(1) FicheiroActual.Activate Input #1, Line$ ColunaA$ = Mid$(Line$, 1, 1) ColunaB$ = Mid$(Line$, 2, 14) ColunaC$ = Mid$(Line$, 15, 17) ColunaD$ = Mid$(Line$, 32, 17) Worksheets("Sheet1").Cells(x, 1).Value = ColunaA$ Worksheets("sheet1").Cells(x, 2).Value = ColunaB$ Worksheets("sheet1").Cells(x, 3).Value = ColunaC$ Worksheets("sheet1").Cells(x, 4).Value = ColunaD$ x = x + 1 Loop Close #1 Question: the ColunaB$ should be set as text, how can i format the field? Thank you very much Pedro Costa |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need help with converting CUSTOM format/TEXT format to DATE format | Excel Worksheet Functions | |||
Change Date Format to Specific Text Format When Copying | Excel Discussion (Misc queries) | |||
how to format a Docmd to pull in an Access file in Text format | Excel Programming | |||
how to format a Docmd to pull in an Access file in Text format | Excel Programming | |||
how to format excel format to text format with separator "|" in s. | New Users to Excel |