Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read Fields from Comma Delimited File 1

Status
Not open for further replies.

dmon000

Technical User
Sep 9, 2003
79
US
Is it possible to read the contents of the last two fields of the first line of a comma delimited text file? My 25 pounds of books have very little to say on using vba to read a text file.

Thanks!!
 
Look up the VBA help on 'Open' which will open a file, and then 'Input#'.

Once you've 'read' the line into a string variable, you'll need to parse it, using the comma as the delimiter.

Max Hugen
Australia
 
Is it possible to import just the first line of comma delimited text file with vba?
 
MaxHugen explained how to do this so why post again in thread705-1382916?. You can also use FileSystemObject to read a textfile and you can link a CSV and use a make table query.
 
Sorry about the redundant post. And Thanks again to Remou for the info about linking CSV files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top