I have a CSV file that is produced from one of our corporate systems every month and is processed using a macro I have written. The problem I have is that if the CSV file has more than 65535 rows then it is too big to be imported in to Excel. However, Excel will import 65535 rows of data from the CSV file and discard the rest.
I'm looking for a way to determine if there are more than 65535 rows of data in the CSV file. I know I could open the file then move to its end and check the row nunber, but I was looking for something a bit more advanced, such as an error code when the CSV is too big. I've been unsuccessful so far to trap this error.
There is no conformity to cell contents either, so file size is out.
Any help would be appreciated.
Thanks
I'm looking for a way to determine if there are more than 65535 rows of data in the CSV file. I know I could open the file then move to its end and check the row nunber, but I was looking for something a bit more advanced, such as an error code when the CSV is too big. I've been unsuccessful so far to trap this error.
There is no conformity to cell contents either, so file size is out.
Any help would be appreciated.
Thanks