Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VB Code to 'read' .txt files and display info in Excel


Hi all

I am not sure that what I want is possible with simple VBA code but
here it goes anyway!

I have loads of files that are being automatically created via a VB
program. Each file is inividually taged and contains data about
promotional activities.

I would like to be able to have a code in Excel that:

- Reads the .txt files in the given location
- Finds the reference to the proper brand as selected in a drop down
menu on my spreadsheet
- Display the relevant information, formated if possible!
- That's it! :D


If you have any tips, let me know!

I have a bad feeling that I'd need to be a fully trained programmer to
implement that...


--
Petitboeuf
------------------------------------------------------------------------
Petitboeuf's Profile: http://www.excelforum.com/member.php...o&userid=10602
View this thread: http://www.excelforum.com/showthread...hreadid=494560

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VB Code to 'read' .txt files and display info in Excel

Look at Data=Get External data and treat your text file as a database
(hopefully it is set up that way).

You can set up a parameter query as shown he


http://nickhodge.co.uk/gui/datamenu/...taexamples.htm

or here

http://www.dicks-clicks.com/excel/Ex...htm#Parameters

If you want to program low level file io:

http://www.cpearson.com/excel/imptext.htm import/export text files

as an example and for reference:

http://support.microsoft.com/default...b;en-us;151262
Working with Sequential Access Files

http://www.applecore99.com/gen/gen029.asp

--
Regards,
Tom Ogilvy



"Petitboeuf" wrote
in message ...

Hi all

I am not sure that what I want is possible with simple VBA code but
here it goes anyway!

I have loads of files that are being automatically created via a VB
program. Each file is inividually taged and contains data about
promotional activities.

I would like to be able to have a code in Excel that:

- Reads the .txt files in the given location
- Finds the reference to the proper brand as selected in a drop down
menu on my spreadsheet
- Display the relevant information, formated if possible!
- That's it! :D


If you have any tips, let me know!

I have a bad feeling that I'd need to be a fully trained programmer to
implement that...


--
Petitboeuf
------------------------------------------------------------------------
Petitboeuf's Profile:

http://www.excelforum.com/member.php...o&userid=10602
View this thread: http://www.excelforum.com/showthread...hreadid=494560



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Files Open Read-Only Don Brownlee Excel Discussion (Misc queries) 5 May 11th 09 03:43 PM
Share 2007 files on SBS 2003 server - read-only doesn't display us Extreme Guru Excel Discussion (Misc queries) 0 February 13th 08 09:37 AM
can i add info to a read only excel document Mark New Users to Excel 1 May 11th 07 11:59 AM
Can I enter info in Excel and have it display as an '*'? Mac6225 Excel Discussion (Misc queries) 1 November 21st 06 06:21 PM
Excel read-only files srcmeador New Users to Excel 1 March 16th 06 03:39 PM


All times are GMT +1. The time now is 05:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"