
Originally Posted by
mc84excel
I am thinking I can improve the response rate of this thread if I upload a workbook to demonstrate the problem....
Aha..., you finally got the password 
To be honest, if I opened a thread, and I just saw just a bunch of words or just screenshots, I immediately hit the x button on the upper right corner of this tab on my browser.
The problem of your function is at :
Hex(avarBuffer(lngReadPos + something))
So lets say the value of avarBuffer is 10, return of Hex(10) is just "A", but actually you need "0A" (with leading zero)
So your code should be like :
But, then again, you are "in hurry mode" (processing thousand of files), so why use multiple steps to convert the array to string first (using hex function), and then convert this string back to long ?
We know string operation is much longer than arithmetic operation.
So, you can use this function instead :
Test speed file :
EF1096752b.xls
Regards
Bookmarks