View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Binary file reads in User type incorrectly

Post the code you are using.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


wrote in message
oups.com...
Oh man is this a strange one. I have a user defined type that
I write
out to a file and read in via VBA. The type is all fixed
lengths
strings and integers. It has read in fine in VB6 and VBA for
years. I
recently changed the type to include another fixed length
string and an
array of integers. Still writes out and reads in just fine in
VB6,
however when I read it in with VBA, it reads in 2 bytes more
than it
should. There is no rhyme or reason to it. Anyone experience
this
before?

Thanks