yorkshirelad
Board Regular
- Joined
- Aug 18, 2003
- Messages
- 100
This would get me out of a jam if someone could help.
I have csv file dailyrecords.txt in a folder 'records' on my desktop, which is replaced with a new file every day.
Once the file is replaced I need to import this into Excel and format on a daily basis.
Is there a macro I could set in Excel that would allow me to
a) Navigate to open the file, identify it as comma deliminated fiile, delete columns e and f and then import it into Excel.
b) After the import is completed I then need to set columns C & D to number format and set each column to auto-stretch.
c) I'd then like it to then prompt me to save it in the original location as Excel 97-2003 file called drecords_todaysdate.xls?
Any help would be really appreciated - please come back to me with any questions.
I have csv file dailyrecords.txt in a folder 'records' on my desktop, which is replaced with a new file every day.
Once the file is replaced I need to import this into Excel and format on a daily basis.
Is there a macro I could set in Excel that would allow me to
a) Navigate to open the file, identify it as comma deliminated fiile, delete columns e and f and then import it into Excel.
b) After the import is completed I then need to set columns C & D to number format and set each column to auto-stretch.
c) I'd then like it to then prompt me to save it in the original location as Excel 97-2003 file called drecords_todaysdate.xls?
Any help would be really appreciated - please come back to me with any questions.