If I recall correctly the engine for
VB is actually derived from VBA (which
seems backwards until you think about it).
VB just wraps a bunch of
functionality around the VBA engine that is not available in VBA (creating
dll's and such). So converting to
VB probably will not help. As for the
stream reader speeding things up... Give it a try and let me know.
Beyond that post your code and let some of the greater minds here have a
crack at it. Perhaps there are some code changes that will optimize your
speed.
--
HTH...
Jim Thomlinson
"Mark HOlcomb" wrote:
,I have written an application in VBA that reads a very large binary file.
I am pleased that it works at all .. but it runs too slow to be of any
practical use. I read 4 bytes at a time, then convert. The file is a
mixture of integer, ascii and floating point data. And very large. I want
to read several of these files in succession.
Would the stream reader speed things up? Or, if I transformed it into VB,
would it go faster? Is there an inheriant speed problem with VBA because it
is wrapped up in EXCEL? I only use VBA because I am most familiar with that
user interface.
Any comments are greatly appreciated.
Mark