I am manipulating files exported from SAP. SAP creates Tab-delimited files with an xls extension. If I open directly into Excel then the data is corrupted due to the inclusion of " marks in some of the original fields.
My current workaround is to open the file in Notepad, replace all " with a space and save the file. I think I need to do this with a large number of files as I can't predict which will contain this corrupting character.
(Some files are 40k rows long and I have not yet tested if these will exceed Notepad's capacity.)
Is there a way I can automate this process within my VBA code? Or a way in which I can import the files rather than open them, and thus get around the issue.
In talking to others I gather this is a common problem within the organisation, causing significant delays and wasted time. I would therefore like to share with others a generic process to clean the "Excel" files created by SAP. I imagine this would involve sharing a macro.
Your guidance would be much appreciated!
Gavin
My current workaround is to open the file in Notepad, replace all " with a space and save the file. I think I need to do this with a large number of files as I can't predict which will contain this corrupting character.
(Some files are 40k rows long and I have not yet tested if these will exceed Notepad's capacity.)
Is there a way I can automate this process within my VBA code? Or a way in which I can import the files rather than open them, and thus get around the issue.
In talking to others I gather this is a common problem within the organisation, causing significant delays and wasted time. I would therefore like to share with others a generic process to clean the "Excel" files created by SAP. I imagine this would involve sharing a macro.
Your guidance would be much appreciated!
Gavin