Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Any help, highly appreciated:
I am trying to get a macro to import a text file in a table format into excel I have the following code but this code does not give me the format properly: Sub importtext() x = 1 Open "c:\trial.txt" For Input As #1 Do While Not EOF(1) Input #1, Line Worksheets("sheet1").Cells(x, 1).Value = Line x = x + 1 Loop Close #1 End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data Import to Excel Issue with Excel 2007 and Excel 2003 on same | Excel Discussion (Misc queries) | |||
Convert a Number Code to a Text Code | Excel Discussion (Misc queries) | |||
Trying to write vba code to import another spreadsheet... | Excel Discussion (Misc queries) | |||
Import a Code to a paragraph using a formula or macro! | Excel Worksheet Functions | |||
copying vba code to a standard code module | Excel Discussion (Misc queries) |