PC Review


Reply
Thread Tools Rate Thread

copy all text files one by one and run a code.

 
 
sermest
Guest
Posts: n/a
 
      12th Jan 2007
I copy a text file and then run my code to get it to my database. I
want to do it for all ".txt" files in a specific directory. Lets say my
directory is "c:\bcf"

1. Get the first ".txt" file - copy it to "sheet2"
2. run my code "aging()", which will reorganize the data
3. copy to "sheet1"
4. get the second ".txt" file
5. run my code "aging()"
6. add to "sheet1"
7 and so for all the text files in that directory.

Thanks for your help.

Best,
Mike

 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      12th Jan 2007
Hi sermest

See this page
http://www.rondebruin.nl/csv.htm

And Chip's page
http://www.cpearson.com/excel/imptext.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"sermest" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>I copy a text file and then run my code to get it to my database. I
> want to do it for all ".txt" files in a specific directory. Lets say my
> directory is "c:\bcf"
>
> 1. Get the first ".txt" file - copy it to "sheet2"
> 2. run my code "aging()", which will reorganize the data
> 3. copy to "sheet1"
> 4. get the second ".txt" file
> 5. run my code "aging()"
> 6. add to "sheet1"
> 7 and so for all the text files in that directory.
>
> Thanks for your help.
>
> Best,
> Mike
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CODE TO HAVE TEXT COPY TO NEW FIELD IN ANOTHER FORM Angie Microsoft Access VBA Modules 0 3rd Jun 2008 06:08 PM
Copy files from PC to PDA (in code!) Factor Microsoft Dot NET Compact Framework 4 4th Oct 2006 11:11 PM
need some simple code to copy text to clipboard worzel Microsoft Dot NET 3 22nd Sep 2005 10:00 AM
open some txt files ,find text , copy the text before that to a single cell gus Microsoft Excel Programming 2 11th Jul 2005 05:40 PM
Code-Copy & Paste in Text Boxes Bourbon Microsoft Excel Programming 1 28th Jan 2004 12:53 AM


Features
 

Advertising
 

Newsgroups
 


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