BR549, I only have one more question.
All my files are more than 300.000 lines, so when I put your code, it took about 2 minutes and 30 seconds to load the file, while when I open it without the code it takes only 11 seconds.
So what I mean is, is there any way that we can know the total lines for the file without counting them one by one as the code did, so it can take less time ??
And of course thank you for your help, and I appreciate it.
Regards,
UH