Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all!
I have a text file(notepad) for example in c:\ This text file has 20 rows or more. How can I import the data in each row into a VBA form. Or just how can i reference the data in that text file so that i can make an array of strings which would get their values(text). Thanks!! Marko Svaco, Croatia |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I thought you might have to resort to an old-fashioned style method and
some code I found of Chip Pearsons seems to back that up: Sub ReadTheTextFile() Dim S As String Open "H:\TextFileName.txt" For Input As #1 ' change filename Do Until EOF(1) Line Input #1, S Debug.Print S Loop Close #1 End Sub .....the above writes each line of the text file to your immediate window but maybe you can adapt, by changing the line "Debug.Print S" to fit your needs Rgds J On Nov 3, 12:50 pm, "Marko Svaco" wrote: Hi all! I have a text file(notepad) for example in c:\ This text file has 20 rows or more. How can I import the data in each row into a VBA form. Or just how can i reference the data in that text file so that i can make an array of strings which would get their values(text). Thanks!! Marko Svaco, Croatia |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the quick reply!!
I think that it will work great! Thanks! Marko Svaco, Croatia |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to Start Excel in Text Import Wizard for data import | Setting up and Configuration of Excel | |||
Import text from Word Form to Excel | Excel Discussion (Misc queries) | |||
no way to import user form into vb6? | Excel Programming | |||
can you import an mp3 to VB in Excel '03 to be played when a form. | Excel Programming | |||
Import form from Access? | Excel Programming |