Hi,
If you record a macro for just one file and post the code I'll show you how to do it for a large number of different files.
Regards,
D
Could you save the file as a template and then just import the text files having opened the template (.xlt) as a document (.xls)
Bruce
I thought about trying it this way and this may make me sound completely stupid, but I can't get it to start recording a macro until I have a file open and I can't open the file until I have set the widths in the text file. Does that make any sense?
I saved the file I have fixed as a template, but when I have it open and I go to open the next one, it still comes up with the "text import wizard". What am I doing wrong?!?!?!??
I saved the file I have fixed as a template, but when I have it open and I go to open the next one, it still comes up with the "text import wizard". What am I doing wrong?!?!?!??
Just add a new workbook and click Tools, Macro, Record New Macro. Then do everything you need to do for one file. When you've finished stop recording and then copy the code from the VB Editor. The code I'll be able to give you will allow your macro to operate on a load of files (e.g. all text files in a folder) but I can't do this until you've posted the code for one file. Without this, it's not possible to know the format you want the file in.
Regards,
D