With the modification I proposed, the first line in your data file will always be skipped, regardless of its content. Isn't that what you wanted? Unless your data file can have multiple unwanted 'header' lines, I can't see what would be achieved by the additional testing.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|