Getting a file and Saving a File

  • Thread starter Thread starter carl0s66
  • Start date Start date
C

carl0s66

Is it possible to open a file, format it's contents and output the
result to another file?

(I need to automate the formatting of hundreds of files in this manner,
don't want to do it manually!)

Cheers
 
The answer is "yes" with conditions. Are all the files Excel? Do
they all receive the same formatting treatment? Mostly likely this
can be automated with some programming.
 
Thanks for the reply,

The files will be .txt files.

They will all be formatted the same way (the macro to do this has been
created).

I simply need a way of getting the text file in and outputting and
corresponding .xls. The filenames are contained in a static array and
the text files correspond to the filenames of the text files. So:

The array contains the first 4 values AAA, AAC, BAA, BUA. And the text
files AAA.txt, AAC.txt, BAA.txt, BUA.txt are in a directory.
 
Hi, apologies for the delayed reply.

It sounds like this should be pretty straightforward. This code will
open a file so it can be read:

Open Filename.txt for Input as #1
....
....
....
Close #1


Please email me: cyclezenATyahooDOTcom so we can chat more
efficiently.

Dave O
 
Off topic.

You spam-guarded your email address in the body of the message, but your address
appears in header. You may want to munge it there, too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top