View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] shayneh@gmail.com is offline
external usenet poster
 
Posts: 3
Default Binary file reads in User type incorrectly

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